getOrAddSync<T> abstract method
T
getOrAddSync<T>(})
Try to get a value from the cache by key. if the key is not in the cache, will be created sync.
Implementation
T getOrAddSync<T>(
String key, {
required T addValue,
bool autoRemove = true,
Duration expiration = const Duration(seconds: 60),
bool listen = true,
});