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

Method Delete

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

Delete will remove the specific key in cache. If there's no such key existing in cache, ErrNoSuchKey will be returned.

(key string)

Source from the content-addressed store, hash-verified

33 // If there's no such key existing in cache,
34 // ErrNoSuchKey will be returned.
35 Delete(key string) error
36
37 // Clear deletes all the items stored in cache.
38 Clear() error

Callers 11

RemovePolicyMethod · 0.65
RemovePoliciesMethod · 0.65
CommitMethod · 0.65
RollbackMethod · 0.65
removeRoleMethod · 0.65
removeUserMethod · 0.65
removeMatchMethod · 0.65
loadAndDeleteFunction · 0.65
DeleteDomainMethod · 0.65

Implementers 1

SyncCachepersist/cache/cache_sync.go

Calls

no outgoing calls

Tested by

no test coverage detected