Type Alias ICacheData<TType>

ICacheData: { expiration: Date | null; value: TType }

Cached value with expiration tracking. Represents a single cache entry stored in the database.

Type Parameters

  • TType = unknown

    The type of data being cached (defaults to unknown)

    IMPORT_PATH: "@daiso-tech/core/cache/contracts"

Type declaration

  • expiration: Date | null

    When this cache entry expires and should be deleted. Null means the entry never expires automatically. After this time, the entry is considered invalid and should not be used.

  • value: TType

    The cached value. Stored data at rest, retrieved on cache hit.