MCPcopy Index your code
hub / github.com/Permify/permify / Cache

Interface Cache

pkg/cache/interfaces.go:4–9  ·  view source on GitHub ↗

Cache - Defines an interface for a generic cache.

Source from the content-addressed store, hash-verified

2
3// Cache - Defines an interface for a generic cache.
4type Cache interface {
5 Get(key string) (any, bool)
6 Set(key string, value any, cost int64) bool
7 Wait()
8 Close()
9}
10
11// noopCache -
12type noopCache struct{}

Callers 32

TestRistrettoFunction · 0.65
TestRistretto_GetFunction · 0.65
TestRistretto_SetFunction · 0.65
GetMethod · 0.65
GetMethod · 0.65
xid8_test.goFile · 0.65
pguint64_test.goFile · 0.65
DecodeMethod · 0.65
TestRistrettoFunction · 0.65
TestRistretto_GetFunction · 0.65
TestRistretto_SetFunction · 0.65
SetMethod · 0.65

Implementers 2

noopCachepkg/cache/interfaces.go
Ristrettopkg/cache/ristretto/ristretto.go

Calls

no outgoing calls

Tested by

no test coverage detected