Set up Redis database which isn't cleared on quit
This commit is contained in:
5
main.py
5
main.py
@@ -80,8 +80,9 @@ def initConf():
|
||||
loadConf(i)
|
||||
|
||||
def initMain():
|
||||
global r
|
||||
global r, g
|
||||
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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user