Caching #163
PrimalDjinn
started this conversation in
Ideas
Caching
#163
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
You could implement caching the API access token using unjs/unstorage. This allows all intances of the Mpesa client to chack the same pool of memory, for the key. Also, it allows for different storage techniques, i.e. redis, localstorage, indexDb etc. If a site is running on different containers, unstorage can be used cleverly to ensure parity.
I've had success with it in my fork.
All reactions