Skip to content

Commit 7ec82b7

Browse files
authored
Update redisdl.py
1 parent 7585497 commit 7ec82b7

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

redisdl.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,10 @@ def dumps(host='localhost', port=6379, password=None, db=0, pretty=False,
134134
for key, type, ttl, value in _reader(r, pretty, encoding, keys):
135135
table[key] = subd = {'type': type, 'value': value}
136136
if ttl is not None:
137-
subd['ttl'] = ttl
138-
subd['expireat'] = _time.time() + ttl
137+
#skip ttl dute to redis 3.X incompatibility
138+
#subd['ttl'] = ttl
139+
#subd['expireat'] = _time.time() + ttl
140+
pass
139141
return encoder.encode(table)
140142

141143
class BytesWriteWrapper(object):

0 commit comments

Comments
 (0)