Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/apache/casbin
/ shouldPersist
Method
shouldPersist
internal_api.go:30–32 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
28
)
29
30
func
(e *Enforcer) shouldPersist() bool {
31
return
e.adapter != nil && e.autoSave
32
}
33
34
func
(e *Enforcer) shouldNotify() bool {
35
return
e.watcher != nil && e.autoNotifyWatcher
Callers
15
addPolicyWithoutNotify
Method · 0.95
addPoliciesWithoutNotify
Method · 0.95
removePolicyWithoutNotify
Method · 0.95
updatePolicyWithoutNotify
Method · 0.95
updatePoliciesWithoutNotify
Method · 0.95
removePoliciesWithoutNotify
Method · 0.95
removeFilteredPolicyWithoutNotify
Method · 0.95
updateFilteredPoliciesWithoutNotify
Method · 0.95
addPolicyWithoutNotifyCtx
Method · 0.80
addPoliciesWithoutNotifyCtx
Method · 0.80
removePolicyWithoutNotifyCtx
Method · 0.80
removePoliciesWithoutNotifyCtx
Method · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected