A simple in-memory cache implementation.
This class provides a basic key-value store for caching objects in memory. It is not thread-safe and does not implement any eviction policies.
The type of the keys in the cache.
The type of the values in the cache.