Commit 7e45bdef by zhangheng

update:"添加laravel_cache前缀"

parent b7ca0ed9
...@@ -73,13 +73,13 @@ def get_mysql_data(): ...@@ -73,13 +73,13 @@ def get_mysql_data():
"symbol": symbol, "symbol": symbol,
"target": target, "target": target,
} }
redis_client.con().set("binance:symbols:dict", json.dumps(symbol_dict)) redis_client.con().set("laravel_cache:binance:symbols:dict", json.dumps(symbol_dict))
return symbol_dict return symbol_dict
def get_redis_symbol(): def get_redis_symbol():
redis_client = RedisClientLocal() redis_client = RedisClientLocal()
data = redis_client.con().get("binance:symbols:dict") data = redis_client.con().get("laravel_cache:binance:symbols:dict")
if data: if data:
symbol_dict = json.loads(data) symbol_dict = json.loads(data)
else: else:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment