Version: 4.3

Class: FileCacheAdapter

Hierarchy

  • FileCacheAdapter

Implements

Constructors

constructor

+ new FileCacheAdapter(options: { cacheDir: string }, baseDir: string, pretty?: boolean): FileCacheAdapter

Defined in packages/core/src/cache/FileCacheAdapter.ts:9

Parameters:

NameTypeDefault value
options{ cacheDir: string }-
baseDirstring-
prettybooleanfalse

Returns: FileCacheAdapter

Properties

VERSION

Private Readonly VERSION: string = Utils.getORMVersion()

Defined in packages/core/src/cache/FileCacheAdapter.ts:9


baseDir

Private Readonly baseDir: string

Defined in packages/core/src/cache/FileCacheAdapter.ts:12


options

Private Readonly options: { cacheDir: string }

Defined in packages/core/src/cache/FileCacheAdapter.ts:11

Type declaration:

NameType
cacheDirstring

pretty

Private Readonly pretty: boolean

Defined in packages/core/src/cache/FileCacheAdapter.ts:13

Methods

clear

clear(): Promise<void>

Implementation of CacheAdapter

Defined in packages/core/src/cache/FileCacheAdapter.ts:51

Clears all items stored in the cache.

Returns: Promise<void>


get

get(name: string): Promise<any>

Implementation of CacheAdapter

Defined in packages/core/src/cache/FileCacheAdapter.ts:18

Gets the items under name key from the cache.

Parameters:

NameType
namestring

Returns: Promise<any>


getHash

PrivategetHash(origin: string): Promise<string | null>

Defined in packages/core/src/cache/FileCacheAdapter.ts:62

Parameters:

NameType
originstring

Returns: Promise<string | null>


path

Privatepath(name: string): Promise<string>

Defined in packages/core/src/cache/FileCacheAdapter.ts:57

Parameters:

NameType
namestring

Returns: Promise<string>


set

set(name: string, data: any, origin: string): Promise<void>

Defined in packages/core/src/cache/FileCacheAdapter.ts:38

inheritdoc

Parameters:

NameType
namestring
dataany
originstring

Returns: Promise<void>

Last updated on by Martin Adámek