MCPcopy
hub / github.com/apache/casbin / getCachedResult

Method getCachedResult

enforcer_cached.go:129–133  ·  view source on GitHub ↗
(key string)

Source from the content-addressed store, hash-verified

127}
128
129func (e *CachedEnforcer) getCachedResult(key string) (res bool, err error) {
130 e.locker.Lock()
131 defer e.locker.Unlock()
132 return e.cache.Get(key)
133}
134
135func (e *CachedEnforcer) SetExpireTime(expireTime time.Duration) {
136 e.expireTime = expireTime

Callers 1

EnforceMethod · 0.95

Calls 1

GetMethod · 0.65

Tested by

no test coverage detected