CacheStorageApi class

Constructors

CacheStorageApi(Client _client)

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

deleteCache(CacheId cacheId) Future<void>
Deletes a cache. cacheId Id of cache for deletion.
deleteEntry(CacheId cacheId, String request) Future<void>
Deletes a cache entry. cacheId Id of cache where the entry will be deleted. request URL spec of the request.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
requestCachedResponse(CacheId cacheId, String requestURL, List<Header> requestHeaders) Future<CachedResponse>
Fetches cache entry. cacheId Id of cache that contains the entry. requestURL URL spec of the request. requestHeaders headers of the request. Returns: Response read from the cache.
requestCacheNames({String? securityOrigin, String? storageKey, StorageBucket? storageBucket}) Future<List<Cache>>
Requests cache names. securityOrigin At least and at most one of securityOrigin, storageKey, storageBucket must be specified. Security origin. storageKey Storage key. storageBucket Storage bucket. If not specified, it uses the default bucket. Returns: Caches for the security origin.
requestEntries(CacheId cacheId, {int? skipCount, int? pageSize, String? pathFilter}) Future<RequestEntriesResult>
Requests data from cache. cacheId ID of cache to get entries from. skipCount Number of records to skip. pageSize Number of records to fetch. pathFilter If present, only return the entries containing this substring in the path
toString() String
A string representation of this object.
inherited

Operators

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