Set up Redis database which isn't cleared on quit

pull/1/head
Mark Veidemanis 5 years ago
parent da14a86e70
commit 7e90080a2c

@ -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

Loading…
Cancel
Save