Skip to main content

Module permission_cache

Module permission_cache 

Source
Expand description

Caching wrapper for PermissionEvaluator with separate positive/negative TTLs.

Mirrors CachingTokenIntrospector: RwLock<HashMap> for reads, Mutex<()> to prevent thundering-herd stampedes, and lazy eviction when the cache exceeds capacity.

Structsยง

CachingPermissionEvaluator
Generic caching wrapper around any PermissionEvaluator.
PermissionCacheOptions
Configuration for CachingPermissionEvaluator.