SkillAgentSearch skills...

Gcache

No description available

Install / Use

/learn @yuanyangen/Gcache
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

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

View on GitHub
GitHub Stars6
CategoryDevelopment
Updated1y ago
Forks0

Languages

Go

Security Score

50/100

Audited on Sep 20, 2024

No findings