Update to Redis function for looking up id_random values.

This commit is contained in:
Scott Idem
2023-11-15 10:34:50 -05:00
parent 5f35de8b92
commit 51991df213

View File

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