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.
ccache
✓ github.com/karlseguin/ccache/v2
Create and use a concurrent LRU cache.
package main
import (
"fmt"
"github.com/karlseguin/ccache/v2"
)
func main() {
cache := ccache.New(ccache.Configure().MaxSize(1000))
cache.Set("key", "value", 0)
item := cache.Get("key")
fmt.Println(item.Value())
}
Debug
Known issues
No known issues recorded.
Upgrade
Version history
2.0.8latest on pkg.go.dev
Audit
Dependencies
No dependency data recorded yet.