Set up Redis database which isn't cleared on quit
This commit is contained in:
parent
da14a86e70
commit
7e90080a2c
5
main.py
5
main.py
|
@ -80,8 +80,9 @@ def initConf():
|
||||||
loadConf(i)
|
loadConf(i)
|
||||||
|
|
||||||
def initMain():
|
def initMain():
|
||||||
global r
|
global r, g
|
||||||
initConf()
|
initConf()
|
||||||
r = StrictRedis(unix_socket_path=config["RedisSocket"], db=0)
|
r = StrictRedis(unix_socket_path=config["RedisSocket"], db=0) # Ephemeral - flushed on quit
|
||||||
|
g = StrictRedis(unix_socket_path=config["RedisSocket"], db=1) # Persistent
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue