Skip to content

Latest commit

 

History

History
51 lines (29 loc) · 817 Bytes

icacheentryoptions.md

File metadata and controls

51 lines (29 loc) · 817 Bytes

timed-memory-cache / Exports / ICacheEntryOptions

Interface: ICacheEntryOptions<T>

Type parameters

Name Type Default
T object {}

Table of contents

Properties

Properties

onRemove

Optional onRemove: (key: string, value: T) => void

called after entry is removed from the cache

Type declaration:

▸ (key: string, value: T): void

Parameters:

Name Type
key string
value T

Returns: void

Defined in: index.ts:24

Defined in: index.ts:24


ttl

Optional ttl: number

If not set, the instances ttl is used

Defined in: index.ts:20