@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
timestamp
• timestamp: number
Timestamp when the entry was created (ms since epoch)