This commit is contained in:
aozhiwei 2020-11-04 14:40:14 +08:00
parent 3247aeb95b
commit e5014dbae8

View File

@ -64,9 +64,9 @@ def saveKeys(r, keys, curr_file):
]
) + '\n')
if expire < 0:
print('[ERROR] ' + key + ' ttl < 0')
print('[WARNING] ' + key + ' ttl < 0')
if expire > 3600 * 24:
print('[ERROR] ' + key + ' ttl > 3600 * 24')
print('[WARNING] ' + key + ' ttl > 3600 * 24')
def exportRedis(context, redis_conf, redis_rule_conf):
redis_dir = CONFIG_DIR + 'out/' + context['channel'] + '/redis/'