Skip to content

Cache

Classes

Cache<Key, T>

Type Parameters

Key

T

Constructors

new Cache()
new Cache<Key, T>(onDelete?): Cache<Key, T>
Parameters

onDelete?

Returns

Cache<Key, T>

Defined in

tmp/graph-editor/src/lib/graph-editor/engine/utils/Cache.ts:4

Properties

cache
cache: Map<Key, T>;
Defined in

tmp/graph-editor/src/lib/graph-editor/engine/utils/Cache.ts:2

Methods

add()
add(key, data): void
Parameters

key: Key

data: T

Returns

void

Defined in

tmp/graph-editor/src/lib/graph-editor/engine/utils/Cache.ts:10

clear()
clear(): void
Returns

void

Defined in

tmp/graph-editor/src/lib/graph-editor/engine/utils/Cache.ts:27

delete()
delete(key): void
Parameters

key: Key

Returns

void

Defined in

tmp/graph-editor/src/lib/graph-editor/engine/utils/Cache.ts:20

get()
get(key): undefined | T
Parameters

key: Key

Returns

undefined | T

Defined in

tmp/graph-editor/src/lib/graph-editor/engine/utils/Cache.ts:6

patch()
patch(key, data): void
Parameters

key: Key

data: T

Returns

void

Defined in

tmp/graph-editor/src/lib/graph-editor/engine/utils/Cache.ts:16