Detailed Description
A simple cache class which has a get and set method Can be added to an engine to cache its results for specific evidence This base class needs to be extended to form an actual cache.
Inheritance diagram for fiftyone\pipeline\engines\DataKeyedCache:
Public Member Functions | |
| get ($cacheKey) | |
| Get an item from the cache. | |
| set ($cacheKey, $value) | |
| Add a value to the cache This method needs to be implemented in a subclass to work. | |
Member Function Documentation
◆ get()
| fiftyone\pipeline\engines\DataKeyedCache::get | ( | $cacheKey | ) |
Get an item from the cache.
This method needs to be implemented in a subclass to work.
- Parameters
-
string|array<string,mixed> $cacheKey
- Returns
- mixed
Reimplemented in fiftyone\pipeline\engines\SessionCache.
◆ set()
| fiftyone\pipeline\engines\DataKeyedCache::set | ( | $cacheKey, | |
| $value ) |
Add a value to the cache This method needs to be implemented in a subclass to work.
- Parameters
-
string|array<string,mixed> $cacheKey mixed $value
Reimplemented in fiftyone\pipeline\engines\SessionCache.
