Entry class

Cache information of one file.

Constructors

Entry(String key, DiskCache _cache)

Properties

currentEditor Editor?
The ongoing edit or null if this entry is not being edited.
getter/setter pair
directory String
no setter
fileSystem → FileSystem
no setter
hashCode int
The hash code for this object.
no setterinherited
key String
The key used to identify the object in the cache.
final
lengths List<int>
Lengths of this entry's files.
getter/setter pair
lockingSourceCount int
Sources currently reading this entry before a write or delete can proceed. When decrementing this to zero, the entry must be removed if it is a zombie.
getter/setter pair
readable bool
True if this entry has ever been published.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sequenceNumber int
The sequence number of the most recently committed edit to this entry.
getter/setter pair
valueCount int
no setter
zombie bool
True if this entry must be deleted when the current edit or read completes.
getter/setter pair

Methods

exists() bool
getCleanFile(int i) String
getDirtyFile(int i) String
getLengths() String
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setLengths(List<String> strings) → void
Set lengths using decimal numbers like "10123".
snapshot() Future<Snapshot?>
Returns a snapshot of this entry. This opens all streams eagerly to guarantee that we see a single published snapshot. If we opened streams lazily then the streams could come from different edits.
toString() String
A string representation of this object.
inherited

Operators

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