A generic cache for storing and retrieving objects by string keys. ObjectCache
Uses a Map to efficiently cache objects, allowing retrieval, addition, and deletion by key.
The type of objects stored in the cache.
Removes an object from the cache by its key.
The key of the object to remove.
Retrieves a cached object by its key.
The key associated with the cached object.
Adds an object to the cache if it doesn’t already exist.
The key to associate with the object.
The object to cache.
A generic cache for storing and retrieving objects by string keys. ObjectCache
Description
Uses a Map to efficiently cache objects, allowing retrieval, addition, and deletion by key.