WrenchCache class
WrenchCache provides utility methods to save/lookup instances of any type.
Only one instance of cache store exists for an App.
- Annotations
-
- @Deprecated('Use MustangCache instead')
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
addObject(
String key, String modelKey, String modelValue) → Future< void> - Writes serialized object to a file
-
configCache(
String cacheName) → void -
deleteObjects(
String key) → Future< void> -
initCache(
String? storeLocation) → Future< void> -
Creates
storeLocation
in the file system to save serialized objectsstoreLocation
is optional for Web -
itemExists(
String key) → bool -
restoreObjects(
String key, void callback(void update< T>(T t), String modelName, String jsonStr)) → Future<void> - Deserializes the previously serialized string into an object and