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
Name | Type |
---|---|
cwd | undefined | string |
Returns
string
Defined in
packages/pvm-core/lib/memoize/tagged-cache-manager.ts:14
_getCacheMap
â–¸ _getCacheMap(cwd?
): Map
<string
, V
>
Parameters
Name | Type |
---|---|
cwd | undefined | string |
Returns
Map
<string
, V
>
Defined in
packages/pvm-core/lib/memoize/tagged-cache-manager.ts:18
clear
â–¸ clear(cwd
): boolean
Parameters
Name | Type |
---|---|
cwd | undefined | 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
Name | Type |
---|---|
cwd | undefined | string |
key | unknown |
Returns
undefined
| V
Defined in
packages/pvm-core/lib/memoize/tagged-cache-manager.ts:33
has
â–¸ has(cwd
, key
): boolean
Parameters
Name | Type |
---|---|
cwd | undefined | string |
key | unknown |
Returns
boolean
Defined in
packages/pvm-core/lib/memoize/tagged-cache-manager.ts:43
remove
â–¸ remove(cwd
, key
): boolean
Parameters
Name | Type |
---|---|
cwd | undefined | string |
key | unknown |
Returns
boolean
Defined in
packages/pvm-core/lib/memoize/tagged-cache-manager.ts:38
set
â–¸ set(cwd
, key
, value
): void
Parameters
Name | Type |
---|---|
cwd | undefined | string |
key | unknown |
value | V |
Returns
void