get abstract method

CacheEntry? get(
  1. String key
)

Retrieves a cache entry by its key.

Returns null if:

  • The key doesn't exist
  • The entry has expired (implementations should auto-delete expired entries)

Implementations should check CacheEntry.isExpired and automatically delete expired entries before returning null.

Implementation

CacheEntry? get(String key);