Memory class

Constructors

Memory({String? filename})

Properties

hashCode int
The hash code for this object.
no setterinherited
isDataEmpty bool
no setter
isMemoryEmpty bool
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

createMemory<T>(String key, T mem, {Duration? duration}) bool
It creates an entry in Memory if the value does not exist.
deleteMemory(String key) → void
Removes entry from Memory.
hasMemory(String key) bool
Checks if a key exists in Active Memory
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
readMemories() List
Get all data from Memory.
readMemory(String key) → dynamic
Get data from Memory.
resetMemory() → void
Removes all values stored on Memory
toString() String
A string representation of this object.
inherited
updateMemory<T>(String key, T mem, {Duration? duration}) bool
Updates a key value in Memory with the new value.
upsertMemory<T>(String key, T mem, {Duration? duration}) → void
Creates new entry in Memory.

Operators

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

Static Properties

memory Memory
final