Update to Redis function for looking up id_random values.
This commit is contained in:
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user