Update to Redis function for looking up id_random values.

This commit is contained in:
Scott Idem
2023-11-15 10:34:04 -05:00
parent 02372a6684
commit 5f35de8b92

View File

@@ -1123,7 +1123,7 @@ def redis_lookup_id_random(
if record_id:
# log.info('The record ID was found using the record_id_random value.')
# r.setex(key_name, datetime.timedelta(minutes=1), value=record_id)
log.info(f'Redis entry found. TTL for: {key_name} : {record_id} is {r.ttl(key_name)} seconds')
log.info(f'Redis entry found. Key: "{key_name}" value="{record_id}" TTL={r.ttl(key_name)} seconds')
return int(record_id)
elif table_name: