Registry /
utility / victoriametrics-fastcache
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.