Gcache
No description available
Install / Use
/learn @yuanyangen/GcacheREADME
gcache
features
gcache is a simple cache via golang, these features are finished current:
- 1 get , set, Mget Delete function
- 2 lazy expiration
- 3 LRU-k evict method, you can set the k, queue length
install
go get github.com/yuanyangen/gcache
usage
set :
err := gcache.Set("key1", "value1", 0)
get
// return value type is interface , so you should assert its type
v := gcache.Get("key1")
mget
v := gcache.MGet([]string{"key1", "key2"})
delete
error := gcache.Delete("key1")
Related Skills
node-connect
339.5kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
83.9kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
339.5kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
83.9kCommit, push, and open a PR
