FileSystemCache class

A cache that stores resources to the local file system.

Inheritance

Constructors

FileSystemCache(String _basePath)
Use the given directory as the root of a cache.

Properties

hashCode → int
The hash code for this object.
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

cache(String path, List<int> body, String lastModified, DateTime cacheUntil) → Future<void>
Store the given resource in the cache.
override
cacheUntil(String path) → Future<DateTime>
Returns the time the resource should be cached until, according to the API.
override
getCached(String path) → Future<List<int>>
Retrieves the resource from the cache.
override
isCached(String path) → Future<bool>
Resolves to whether the resource exists in the cache.
override
lastModified(String path) → Future<String>
Returns the value of the Last-Modified header on the last retrieval of this resource.
override
close() → void
Free resources owned by the cache (e.g. file descriptors, IndexedDB connections).
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() → String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) → bool
The equality operator.
inherited