DVAssetCache class final
What the server keeps of its site between requests.
Constructors
- DVAssetCache({int memoryLimit = 16 * 1024 * 1024, String? directory, String? imagesDirectory})
Properties
- directory → String?
-
Where decoded files are kept on disk, one directory per build, or null
for no disk cache. Safe to delete at any time: it is rebuilt on demand.
final
- diskEnabled ↔ bool
-
Whether decoded files are kept in directory. The site's declaration
(
dartvel.web.server.http.diskCache) can turn it off.getter/setter pair - hashCode → int
-
The hash code for this object.
no setterinherited
- imagesDirectory → String?
-
Where resized images are kept, or null for the system's temporary
directory. Not under directory, whose other builds are removed: a
variant is named by its source's bytes and outlives a deploy.
final
- memoryBytes → int
-
How many bytes are held in memory.
no setter
- memoryEntries → int
-
How many files are held in memory.
no setter
- memoryLimit ↔ int
-
How many bytes of files may be held in memory.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
forBuild(
String buildId) → Directory? -
The directory
buildId's files are kept in, created, with every other build's removed: a deploy starts with nothing of the last one. -
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 Properties
- current ↔ DVAssetCache?
-
The cache this process's server uses, when its entry point set one up.
getter/setter pair