resolve error redis_wrapper
This commit is contained in:
parent
b0af57cbce
commit
256428572f
1 changed files with 1 additions and 1 deletions
|
|
@ -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))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue