Skip to content

@valoranchi/riot-client / raw / FileResponseCache

Class: FileResponseCache ​

Defined in: src/riot/ResponseCache.ts:17

Constructors ​

Constructor ​

new FileResponseCache(ttlMs, dir?, now?): FileResponseCache

Defined in: src/riot/ResponseCache.ts:22

Parameters ​

ttlMs ​

number

dir? ​

string = ...

now? ​

() => number

Returns ​

FileResponseCache

Methods ​

forget() ​

forget(keyPrefix): void

Defined in: src/riot/ResponseCache.ts:46

Parameters ​

keyPrefix ​

string

Returns ​

void


through() ​

through<T>(key, fetcher, options?): Promise<T>

Defined in: src/riot/ResponseCache.ts:32

Type Parameters ​

T ​

T

Parameters ​

key ​

string

fetcher ​

() => Promise<T>

options? ​
ttlMs? ​

number

Returns ​

Promise<T>

Not affiliated with Riot Games