You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Initial release of CCache, an in-memory, thread-safe, key-value cache.
Eviction Policies: Implemented Least Recently Used (LRU) eviction when the cache exceeds the specified maximum size (max_size).
TTL (Time-To-Live): Cache entries expire after a specified time (ttl_millis), automatically evicting expired entries.
with_cache Method: Added a method that retrieves cached data or computes and caches the result if not already stored, optimizing redundant calculations.
Callback Functions:
Eviction Callback: Invoked when an item is evicted from the cache.