BoxCache class

Properties

ambientCleanInterval int
final
expirationTime int
final
hashCode int
The hash code for this object.
no setterinherited
maxEntries int
final
name String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

clean() Future<int>
clear() Future<void>
compute(String key, BoxCacheResolver resolver) Future
contains(String key) Future<bool>
delete(String key) Future<void>
get(String key) Future
getLastClean() Future<int>
getStaleness(String key) Future<int>
hasExpired(String key) Future<bool>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
put(String key, dynamic value) Future
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

create({required String name, int expirationTime = _defaultCacheExpiryMS, int maxEntries = _defaultMaxEntries, int ambientCleanInterval = _defaultAmbientCleanInterval}) Future<BoxCache>
createSync({required String name, int expirationTime = _defaultCacheExpiryMS, int maxEntries = _defaultMaxEntries, int ambientCleanInterval = _defaultAmbientCleanInterval}) BoxCache