Skip to content 

PromiseCacheOptions Interface

Packages > @fluidframework/common-utils > PromiseCacheOptions

Options for configuring the PromiseCache

Signature:

export interface PromiseCacheOptions 

Properties

List of properties of this interface
Property Type Description
expiry PromiseCacheExpiry Common expiration policy for all items added to this cache
removeOnError (e: any) => boolean If the stored Promise is rejected with a particular error, should the given key be removed?

Events

expiry

Common expiration policy for all items added to this cache

Signature:

expiry?: PromiseCacheExpiry;

removeOnError

If the stored Promise is rejected with a particular error, should the given key be removed?

Signature:

removeOnError?: (e: any) => boolean;