Retrieves a cached value by key. Returns the value and expiration info, or null if not found.
Readable execution context for the operation
The cache key identifier
Cache data with value and expiration, or null if not found
Creates or updates a cache entry with optional expiration. Sets (upserts) the value at the key, overwriting any existing entry.
Readable execution context for the operation
The cache key identifier
The value to cache
Optionalexpiration: null | DateWhen the cache entry should expire (optional, null = never expires)
Void (always succeeds)
Transaction context for atomic cache operations. Provides methods to read and modify cache state within a database transaction.
All transaction methods run atomically: