ProcessCacheService class final

Coordinator service exposing a MemoryStore to every worker (process-scope cache and locks). Values arrive in the wire form of ProcessStore.encodeWire (mostly JSON strings) and are kept as they are: this isolate never decodes or copies them.

Implemented types

Constructors

ProcessCacheService([MemoryStore? store, String name = serviceName])
A service over store, or a new memory store.

Properties

hashCode → int
The hash code for this object.
no setterinherited
name → String
The name it is registered under: serviceName unless another one was given.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
store → MemoryStore
The values every worker shares.
final

Methods

handle(String op, Map<String, Object?> args) → Future<Object?>
Handles op and returns a sendable result.
override
handleTyped(LockMessage message) → Object?
The lock operations, as ProcessStore sends them (LockMessage); handle answers them as maps too.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
stats() → Map<String, Object?>
Debug snapshot (dartisan coordinator:stats).
override
toString() → String
A string representation of this object.
inherited

Operators

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

Constants

jwtDenylistServiceName → const String
The service of revoked JWT ids (createStandardCoordinator): a store of its own, so application cache pressure cannot evict them.
serviceName → const String
The coordinator service name.