flexi_storage library

Classes

BatchOperation
An abstract class that defines a batch operation interface for managing key-value pairs in a storage system. This class provides methods for writing, reading, checking, removing, and clearing stored data.
CacheStrategy<K, V>
An abstract class defining the interface for cache strategies.
FlexiStorage
The FlexiStorage class provides an abstraction for storing, retrieving, and managing data in a simple key-value format. It is designed to be lightweight and easy to use, making it suitable for scenarios where a full database solution is not required.
LRUCacheStrategy<K, V>
A cache strategy that implements the Least Recently Used (LRU) eviction policy.
SizeLimitedCacheStrategy<K, V>
A cache strategy that limits the number of items stored in the cache.
TimeBasedCacheStrategy<K, V>
A cache strategy that automatically removes items after a specified time-to-live (TTL).