Registry / utility / victoriametrics-fastcache

victoriametrics-fastcache

JSON →
library1.13.3gogounverified

Package fastcache implements fast in-memory cache.

go get github.com/VictoriaMetrics/fastcache
INSTALL
IMPORT
SIG · VICTORIAMETRICS-FA
V
victoriametrics-fastcache
utilitygov1.13.3
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

fastcache
github.com/VictoriaMetrics/fastcache

Creates a 1 MB cache, sets a key, and retrieves it.

package main import ( "fmt" "github.com/VictoriaMetrics/fastcache" ) func main() { cache := fastcache.New(1024 * 1024) // 1 MB cache cache.Set([]byte("key"), []byte("value")) val := cache.Get(nil, []byte("key")) fmt.Printf("Got: %s\n", val) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.13.3latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
victoriametrics-fastcache — go get victoriametrics-fastcache · libregistry