NonStoringObjectProvider class
- Implemented types
- Available extensions
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
-
close(
) → Future< bool> -
Close the connection to the repository. If this is the last connection
to the repository it will return true and the repository is trully
closed. If there are still open connections it will return false;
override
-
delete(
int id) → Future< int> -
Deletes a cache object by
idoverride -
deleteAll(
Iterable< int> ids) → Future<int> -
Deletes items with
idsfrom the repositoryoverride -
deleteDataFile(
) → Future< void> -
Deletes the cache data file including all cache data.
override
-
exists(
) → Future< bool> -
Returns whether or not there is an existing data file with cache info.
override
-
get(
String url) → Future< CacheObject?> -
Gets a
CacheObjectbykeyoverride -
getAllObjects(
) → Future< List< CacheObject> > -
Gets the list of all objects in the cache
override
-
getObjectsOverCapacity(
int capacity) → Future< List< CacheObject> > -
Gets the list of
CacheObjectthat can be removed if the repository is over capacity.override -
getOldObjects(
Duration maxAge) → Future< List< CacheObject> > -
Returns a list of
CacheObjectthat are older thanmaxAgeoverride -
insert(
CacheObject cacheObject, {bool setTouchedToNow = true}) → Future< CacheObject> -
Inserts
cacheObjectinto the repositoryoverride -
migrateFrom(
CacheInfoRepository previousRepository) → Future< void> -
Available on CacheInfoRepository, provided by the MigrationExtension extension
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
open(
) → Future< bool> -
Opens the repository, or just returns true if the repo is already open.
override
-
toString(
) → String -
A string representation of this object.
inherited
-
update(
CacheObject cacheObject, {bool setTouchedToNow = true}) → Future< int> -
Updates an existing
cacheObjectoverride -
updateOrInsert(
CacheObject cacheObject) → Future -
Updates a given
CacheObject, if it exists, or adds a new item to the repositoryoverride
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited