anylist icon indicating copy to clipboard operation
anylist copied to clipboard

Caching credentials and data

Open jchadwick opened this issue 2 years ago • 1 comments

As it stands (at least from what I can tell), user credentials are stored on disk and data is stored in memory.

Neither of these things work well in a stateless, multi-user server-side scenario. Would be nice to have a cache implementation.

In my project I used keyv as the direct dependency/interface which allows you to use a variety of backends, including in-memory, file-based, and (of course) distributed caches. It also allows you to use TTLs to manage the data more effectively. If you like the idea, I can make a PR.

jchadwick avatar Dec 13 '23 00:12 jchadwick

keyv works for me. Alternatively just allowing any object implementing get() / set() could work too.

codetheweb avatar Dec 13 '23 05:12 codetheweb