FluidCache Class
A cache that can be used by the Fluid ODSP driver to cache data for faster performance
Signature
export declare class FluidCache implements IPersistedCache
Implements: IPersistedCache
Constructors
Constructor | Description |
---|---|
(constructor)(config) | Constructs a new instance of the FluidCache class |
Methods
Method | Return Type | Description |
---|---|---|
get(cacheEntry) | Promise<any> | |
put(entry, value) | Promise<void> | |
removeEntries(file) | Promise<void> |
Constructor Details
(constructor)
Constructs a new instance of the FluidCache
class
Signature
constructor(config: FluidCacheConfig);
Parameters
Parameter | Type | Description |
---|---|---|
config | FluidCacheConfig |
Method Details
get
Signature
get(cacheEntry: ICacheEntry): Promise<any>;
Parameters
Parameter | Type | Description |
---|---|---|
cacheEntry | ICacheEntry |
Returns
Return type: Promise<any>
put
Signature
put(entry: ICacheEntry, value: any): Promise<void>;
Parameters
Parameter | Type | Description |
---|---|---|
entry | ICacheEntry | |
value | any |
Returns
Return type: Promise<void>
removeEntries
Signature
removeEntries(file: IFileEntry): Promise<void>;
Parameters
Parameter | Type | Description |
---|---|---|
file | IFileEntry |
Returns
Return type: Promise<void>