LruCache<K extends Object, V extends Object> constructor
Creates a cache holding at most maxSize entries (must be positive).
When ttl is set, entries expire that long after they were stored.
Audited: 2026-06-12 11:26 EDT
Implementation
LruCache(int maxSize, {Duration? ttl}) : _maxSize = _validatedMaxSize(maxSize), _ttl = ttl;