Skip to content

CacheEntryType<T>

@blobs/sdk v0.1.0


@blobs/sdk / utils/types / CacheEntryType

CacheEntryType<T> = object

Defined in: utils/types.ts:162

Cache entry shape for the SDK’s local cache.

Renamed from CacheEntry to avoid colliding with another internal type.

Type Parameters

T

T

Cached value type.

Properties

data

data: T

Defined in: utils/types.ts:164

Cached payload.


timestamp

timestamp: number

Defined in: utils/types.ts:166

Epoch ms when the entry was inserted.


ttl

ttl: number

Defined in: utils/types.ts:168

Time-to-live in ms after timestamp.