LockProvider class abstract
Creates and restores owner-aware locks for a cache backend.
The returned Lock is a handle; creating it does not necessarily acquire the lock. Call Lock.acquire, Lock.get, or Lock.block before entering the protected section.
Constructors
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
-
lock(
String name, [int seconds = 0, String? owner]) → FutureOr< Lock> -
Creates a lock handle named
name. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
restoreLock(
String name, String owner) → FutureOr< Lock> -
Restores a lock handle named
namefor an existingowner. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited