Skip to main content

Crate pdk_cache_lib

Crate pdk_cache_lib 

Source
Expand description

Cache Library

A caching library that provides a simple Cache trait with multiple eviction strategies. It is designed to be injected and configured during the policy configuration phase and supports both policy-isolated and shared caches across policies.

This library provides data storage functionality with support for:

Re-exports§

pub use builder::EvictionStrategy;
pub use builder::LruStrategy;

Modules§

builder
Primitives for building a cache
error
Possible errors encountered during the usage of a crate::Cache

Traits§

Cache
Represents a cache. It stores each element as a new entry.