use raw_get and raw_set for better debug of redis

This commit is contained in:
Kenneth Kehl
2024-04-19 10:12:27 -07:00
parent 1ae239cdb8
commit 075ac1f3d3

View File

@@ -91,13 +91,15 @@ def _create_service_invite(invited_user, invite_link_host):
# This is for the login.gov service invite on the
# "Set Up Your Profile" path.
redis_key = f"service-invite-{invited_user.email_address}"
redis_store.set(
redis_store.raw_set(
redis_key,
json.dumps(data),
ex=3600 * 24,
)
# TODO REMOVE DEBUG
print(hilite(f"Save this data {data} with this redis_key {redis_key}"))
did_we_save_it = redis_store.raw_get(redis_key)
print(hilite(f"Did we save the data successfully? {did_we_save_it}"))
# END DEBUG
send_notification_to_queue(saved_notification, queue=QueueNames.NOTIFY)