Commit 7e45bdef by zhangheng

update:"添加laravel_cache前缀"

parent b7ca0ed9
......@@ -73,13 +73,13 @@ def get_mysql_data():
"symbol": symbol,
"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
def get_redis_symbol():
redis_client = RedisClientLocal()
data = redis_client.con().get("binance:symbols:dict")
data = redis_client.con().get("laravel_cache:binance:symbols:dict")
if data:
symbol_dict = json.loads(data)
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