Skip to main content
Version: v1

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​

ConstructorDescription
(constructor)(config)Constructs a new instance of the FluidCache class

Methods​

MethodReturn TypeDescription
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​

ParameterTypeDescription
configFluidCacheConfig

Method Details​

get​

Signature​

get(cacheEntry: ICacheEntry): Promise<any>;

Parameters​

ParameterTypeDescription
cacheEntryICacheEntry

Returns​

Return type: Promise<any>

put​

Signature​

put(entry: ICacheEntry, value: any): Promise<void>;

Parameters​

ParameterTypeDescription
entryICacheEntry
valueany

Returns​

Return type: Promise<void>

removeEntries​

Signature​

removeEntries(file: IFileEntry): Promise<void>;

Parameters​

ParameterTypeDescription
fileIFileEntry

Returns​

Return type: Promise<void>