The type of keys used in the cache. Defaults to string.
The type of values stored in the cache. Defaults to any.
Removes all entries from the cache. Resets the cache to its initial empty state.
Removes an entry from the cache by its key. If the key doesn't exist, this operation has no effect.
The key to remove from the cache
Checks if a key exists in the cache.
The key to check for
true if the key exists in the cache, false otherwise
Generic interface for cache implementations. Provides standard cache operations with type-safe key-value pairs.