json_cache library

A collection of JsonCache decorators.

Classes

JsonCache
Represents cached data in json format.
JsonCacheFake
In-memory cache without synchronization.
JsonCacheFlutterSecureStorage
Stores data in secure storage.
JsonCacheHive
Implementation on top of the Hive package.
JsonCacheHollow
Hollow JsonCache — It is intended to serve as a placeholder for JsonCache instances.
JsonCacheLocalStorage
Implementation on top of the LocalStorage package.
JsonCacheMem
Thread-safe in-memory JsonCache decorator.
JsonCacheSafeLocalStorage
Implementation on top of the SafeLocalStorage package.
JsonCacheSharedPreferences
Persistent preferences file cache.
JsonCacheTry
A JsonCache decorator that provides improved information about cache-related failures by throwing JsonCacheException.
JsonCacheWrap
Decorator Envelope of JsonCache.

Typedefs

OnInitError = FutureOr<Null> Function(Object, StackTrace)
JsonCacheMem.init initialization error callback.

Exceptions / Errors

JsonCacheException<T extends Object>
An exception to indicate cache operation failures.