Commit 03c344bd authored by gushitong's avatar gushitong

fix json.loads for py35

parent 7e8a2c97
__version__ = '0.0.8'
__version__ = '0.0.9'
__author__ = 'gushitong@gmei.com'
......@@ -27,7 +27,7 @@ class RedisCache(_PoolMixin):
"""
key = "%s:%s" % (self.prefix, str(item))
obj = self._client.get(key)
return json.loads(obj) if obj else None
return json.loads(obj.decode()) if obj else None
def __setitem__(self, key, value):
"""
......
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