resolve error redis_wrapper

This commit is contained in:
marty 2020-03-31 12:54:30 +00:00
parent b0af57cbce
commit 256428572f

View file

@ -43,7 +43,7 @@ class RedisWrapper(redis.Redis):
try:
if expires_in_sec:
self.setex(key, expires_in_sec, pickle.dumps(val))
self.setex(name=key, time=expires_in_sec, value=pickle.dumps(val))
else:
self.set(key, pickle.dumps(val))