MCPcopy Index your code
hub / github.com/apache/casbin / Get

Method Get

persist/cache/cache.go:30–30  ·  view source on GitHub ↗

Get returns result for key, If there's no such key existing in cache, ErrNoSuchKey will be returned.

(key string)

Source from the content-addressed store, hash-verified

28 // If there's no such key existing in cache,
29 // ErrNoSuchKey will be returned.
30 Get(key string) (bool, error)
31
32 // Delete will remove the specific key in cache.
33 // If there's no such key existing in cache,

Callers 6

getCachedResultMethod · 0.65
getCachedResultMethod · 0.65
TestExplainWithMockAPIFunction · 0.65
testCacheGetFunction · 0.65
testCachePutFunction · 0.65
GetMethod · 0.65

Implementers 1

SyncCachepersist/cache/cache_sync.go

Calls

no outgoing calls

Tested by 3

TestExplainWithMockAPIFunction · 0.52
testCacheGetFunction · 0.52
testCachePutFunction · 0.52