Skip to main content

Module cache

Module cache 

Source
Expand description

Generic cache abstraction for authz resolution caches.

Provides AuthzCache<V> trait and a NoopCache implementation that never stores entries. The trait is intentionally minimal so that authz-core stays dependency-light — concrete backends (e.g. moka) live in downstream crates.

Structs§

NoopCache
A cache that never stores anything — every get returns None.

Traits§

AuthzCache
Generic cache abstraction for authz resolution caches.
CacheMetrics
Cache performance metrics.

Functions§

noop_cache
Convenience helper: create a NoopCache wrapped in an Arc.