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
treethought
@treethought.eth
I'm not too deep in db comparison land, but I've had good experience with badger. I use it in a few projects for the same purpose of being a fast enough, local, simple cache including in my farcaster tui
1 reply
0 recast
1 reaction
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
osama
@osama
lmdb?
0 reply
0 recast
0 reaction
Aplpl
@aplpl
I used goleveldb (a rewrite of the original leveldb). https://github.com/syndtr/goleveldb
0 reply
0 recast
0 reaction