HomePhabricator
Diffusion Comm e22e879f9a0d

[keyserver] cache findUserIdentities response

Description

[keyserver] cache findUserIdentities response

Summary:
when possible, we should get the user identity in question from the redis cache. if we can't get it, then we call identity and -- in the background -- cache the response

Depends on D13639

Test Plan: called getUserFarcasterID in a loop 10 times with a 10 second sleep in between each call and confirmed that only the first invocation of the function led to an identity service API call

Reviewers: ashoat

Reviewed By: ashoat

Subscribers: tomek

Differential Revision: https://phab.comm.dev/D13640

Details

Provenance
varunAuthored on Tue, Oct 8, 8:45 PM
Reviewer
ashoat
Differential Revision
D13640: [keyserver] cache findUserIdentities response
Parents
rCOMM69e0ea1315cb: [keyserver] extend redis cache to store user identities returned by…
Branches
Unknown
Tags
Unknown