Skip to content

Latest commit

 

History

History
200 lines (101 loc) · 3.17 KB

MapCache.md

File metadata and controls

200 lines (101 loc) · 3.17 KB

@caffedpkg/microcore


@caffedpkg/microcore / MapCache

Class: MapCache<K, V>

Name: MapCache Classdesc: Default cache implementation

Implements: {Cache<K, V>}

Type Parameters

K = MapHashKey

V = any

Implements

Constructors

new MapCache()

new MapCache<K, V>(params): MapCache<K, V>

Parameters

params

MapCacheParams = {}

Returns

MapCache<K, V>

Defined in

src/cache/cache.ts:73

Accessors

length

Get Signature

get length(): number

Returns

number

Implementation of

Cache.length

Defined in

src/cache/cache.ts:78


name

Get Signature

get name(): string

Returns

string

Implementation of

Cache.name

Defined in

src/cache/cache.ts:90

Methods

clear()

clear(): void

Returns

void

Implementation of

Cache.clear

Defined in

src/cache/cache.ts:106


getValue()

getValue(key): V

Parameters

key

K

Returns

V

Implementation of

Cache.getValue

Defined in

src/cache/cache.ts:98


hasValue()

hasValue(key): boolean

Parameters

key

K

Returns

boolean

Implementation of

Cache.hasValue

Defined in

src/cache/cache.ts:86


removeValue()

removeValue(key): boolean

Parameters

key

K

Returns

boolean

Implementation of

Cache.removeValue

Defined in

src/cache/cache.ts:102


setValue()

setValue(key, value): void

Parameters

key

K

value

V

Returns

void

Implementation of

Cache.setValue

Defined in

src/cache/cache.ts:94