ReadThruOptions

ReadThruOptions

Class that defines the fetch operation on cache can read from data source if item not found.


Constructor

# new ReadThruOptions(mode, providerName)

Initialized a new instance of ReadThruOptions.

Parameters:
Name Type Default Description
mode ReadMode

ReadMode for read-through options.

providerName string null

A unique identifier for the data source provider.

Methods

# getProviderName() → {string}

Get unique identifier for the data source provider.

Returns:
Type
string

# getReadMode() → {ReadMode}

Get ReadMode for read-through options.

Returns:

ReadMode for read-through options.

Type
ReadMode

# setReadMode(mode)

Specifies ReadMode for read-through options.

Parameters:
Name Type Description
mode ReadMode

ReadMode for read-through options.