Content
@
0 reply
0 recast
0 reaction
vrypan |--o--|
@vrypan.eth
I need a local, persistent key/value store that works well with Go. Transaction support is not needed, I will just do simple atomic reads/writes to implement a local cache of data fetched from a farcaster hub (ex: fid->fname, castId->cast_data, etc) It would be nice (not required) if it provided some pruning mechanism out of the box that lets me prune entries after a specific number of entries is reached. I'm open to test something that fits the requirements but it's not 100% battle-tested, my app is not mission critical and can easily recover if things break once in a while.
3 replies
0 recast
4 reactions
Goksu Toprak
@gt
Do you need it to be persisted for a long time or just read / write? It might be somewhat of an overkill (almost always is) but I love the interface of etcd. https://github.com/etcd-io/etcd
1 reply
0 recast
0 reaction
vrypan |--o--|
@vrypan.eth
The context it will be used is fargo (farcaster command line client that uses Farcaster gRPC API). I currently cache requests (for example looking up fids or fnames) using an in-memory map that I just dump on disk. I'm looking for something similarly simple, but more manageable and maybe a couple of additional features out of the box. It will be an overkill to have a separate service for this. 🙏
0 reply
0 recast
0 reaction