Skip to main content

Class: CwdCache<V>

@pvm/core.CwdCache

Type parameters

Name
V

Constructors

constructor

• new CwdCache<V>()

Type parameters

Name
V

Properties

_caches

• _caches: Map<string, Map<string, V>>

Defined in

packages/pvm-core/lib/memoize/tagged-cache-manager.ts:12

Methods

_cwdKey

â–¸ _cwdKey(cwd): string

Parameters

NameType
cwdundefined | string

Returns

string

Defined in

packages/pvm-core/lib/memoize/tagged-cache-manager.ts:14


_getCacheMap

â–¸ _getCacheMap(cwd?): Map<string, V>

Parameters

NameType
cwdundefined | string

Returns

Map<string, V>

Defined in

packages/pvm-core/lib/memoize/tagged-cache-manager.ts:18


clear

â–¸ clear(cwd): boolean

Parameters

NameType
cwdundefined | string

Returns

boolean

Defined in

packages/pvm-core/lib/memoize/tagged-cache-manager.ts:52


clearAll

â–¸ clearAll(): void

Returns

void

Defined in

packages/pvm-core/lib/memoize/tagged-cache-manager.ts:56


get

â–¸ get(cwd, key): undefined | V

Parameters

NameType
cwdundefined | string
keyunknown

Returns

undefined | V

Defined in

packages/pvm-core/lib/memoize/tagged-cache-manager.ts:33


has

â–¸ has(cwd, key): boolean

Parameters

NameType
cwdundefined | string
keyunknown

Returns

boolean

Defined in

packages/pvm-core/lib/memoize/tagged-cache-manager.ts:43


remove

â–¸ remove(cwd, key): boolean

Parameters

NameType
cwdundefined | string
keyunknown

Returns

boolean

Defined in

packages/pvm-core/lib/memoize/tagged-cache-manager.ts:38


set

â–¸ set(cwd, key, value): void

Parameters

NameType
cwdundefined | string
keyunknown
valueV

Returns

void

Defined in

packages/pvm-core/lib/memoize/tagged-cache-manager.ts:28