vyuh_cache library

Classes

Cache<V>
A generic cache implementation that manages data of type V. Provides comprehensive cache management functionality including configuration, storage operations (get, set, remove),and cache maintenance (build, clear).
CacheConfig<V>
A configuration object for the cache.
CacheEntry<V>
A cache entry that encapsulates a value with time-based expiration.
CacheStorage<T>
A cache storage interface that defines the methods for a cache storage.
MemoryCacheStorage<T>
A simple in-memory cache storage implementation

Typedefs

CacheValueBuilder<T> = Future<T> Function()
A function that builds a value for the cache.