Permalink
Browse files

always get settings from Redis

  • Loading branch information...
utgwkk committed Oct 20, 2018
1 parent ea13bff commit 24c80bebef272ee072a6b3b6f75c583d5e11e87d
Showing with 1 addition and 5 deletions.
  1. +1 −5 webapp/python/isucoin/model/settings.py
@@ -11,7 +11,6 @@
LOG_APPID = "log_appid"
# Global settings
_setting = dict()
_redisconn = None
_redispool = None
@@ -36,13 +35,10 @@ def _redis():
def set_setting(k: str, v: str):
_redis().set(k, v)
_setting[k] = v
def get_setting(k: str) -> str:
if k not in _setting:
_setting[k] = _redis().get(k).decode('utf-8')
return _setting[k]
return _redis().get(k).decode('utf-8')
def get_isubank():

0 comments on commit 24c80be

Please sign in to comment.