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

Method Get

util/util.go:415–419  ·  view source on GitHub ↗
(key interface{})

Source from the content-addressed store, hash-verified

413}
414
415func (cache *SyncLRUCache) Get(key interface{}) (value interface{}, ok bool) {
416 cache.rwm.Lock()
417 defer cache.rwm.Unlock()
418 return cache.LRUCache.Get(key)
419}
420
421func (cache *SyncLRUCache) Put(key interface{}, value interface{}) {
422 cache.rwm.Lock()

Callers

nothing calls this directly

Calls 1

GetMethod · 0.65

Tested by

no test coverage detected