ReusableObjectCache<T> Class
Abstract class managing an array of objects of type T, available for reuse by trusted callers.
- Derived class must implement
createForCache
andclearForCache
.
Extended by
Methods
Name | Description | |
---|---|---|
constructor<T>(): ReusableObjectCache<T> Protected | Create a new cache for objects of type T. | |
clearForCache(data: T): void Protected Abstract | Tidy up data so it can be reused. |
|
createForCache(): T Protected Abstract | Create a new, ready-to-use object. | |
dropAllToCache(data: T[]): void | Drop multiple objects to the cache. | |
dropToCache(data: T): void | Present data for storage in the cache, and hence reuse by any subsequent grabFromCache. |
|
grabFromCache(): T | Grab an object from the cache. |
Defined in
Last Updated: 02 August, 2025
Found something wrong, missing, or unclear on this page? Raise an issue in our repo.