Skip to content

@egain/ai-agent-sdk API Reference - v0.1.1 / CacheEntry

Interface: CacheEntry<T>

Cache entry with timestamp for TTL support.

Example

typescript
const entry: CacheEntry<UserData> = {
  value: { userId: "123", name: "John" },
  timestamp: Date.now()
};

Type parameters

Name
T

Table of contents

Properties

Properties

value

value: T

The cached value

Defined in

core/api/CacheAdapter.ts:111


timestamp

timestamp: number

Timestamp when the entry was created (ms since epoch)

Defined in

core/api/CacheAdapter.ts:113

Released under the MIT License.