mirror of
https://github.com/ThomasGsp/HyperProxmox.git
synced 2025-03-09 15:40:18 +00:00
Changes for redis
- Cache system - Internal working - Code clean
This commit is contained in:
parent
78fca2bef4
commit
a7d66036c0
5 changed files with 52 additions and 65 deletions
|
@ -121,13 +121,15 @@ if __name__ == "__main__":
|
|||
}
|
||||
|
||||
""" First redis connection """
|
||||
Lredis = Redis_messages(generalconf["redis"]["ip"])
|
||||
Lredis.connect()
|
||||
# Lredis = Redis_wrapper(generalconf["redis"]["ip"], generalconf["redis"]["port"])
|
||||
# Lredis.connect()
|
||||
|
||||
""" Init Core thread """
|
||||
core = Core(generalconf, Lredis)
|
||||
# core = Core(generalconf, Lredis)
|
||||
core = Core(generalconf)
|
||||
|
||||
""" Init API thread """
|
||||
api_th = ThreadAPI(1, "ThreadAPI", urls, core, generalconf, Lredis)
|
||||
# api_th = ThreadAPI(1, "ThreadAPI", urls, core, generalconf, Lredis)
|
||||
api_th = ThreadAPI(1, "ThreadAPI", urls, core, generalconf)
|
||||
api_th.start()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue