EventCacheStateRecord class
Lean derived cache metadata for one event.
This intentionally does not embed the full Nip01Event. It persists only the extra state useful for cache maintenance tasks such as eviction planning.
Constructors
Properties
- coordinateKey → String?
-
final
- createdAt → int
-
final
- deletedByEventId → String?
-
final
- eventId → String
-
final
- expirationAt → int?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isCurrent → bool
-
final
- isDeleted → bool
-
no setter
- kind → int
-
final
- pubKey → String
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
isExpiredAt(
int timestamp) → bool -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
buildForEvents(
List< Nip01Event> rawEvents, {int? now}) → List<EventCacheStateRecord> - Builds derived state records from raw events using the same visibility semantics as cache reads and eviction planning.
-
conflictKeyFor(
Nip01Event event) → String? -
The NIP-01 conflict domain of
event:kind:pubkey:d-tagfor addressable kinds,kind:pubkeyfor other replaceable kinds, null for the rest. -
deletionCoversConflictKey(
Nip01Event deletion, String conflictKey) → bool -
Whether
deletioncoversconflictKeythrough one of itsatags. -
normalizeConflictKey(
String coordinate) → String? - Normalizes a caller supplied conflict domain so it compares equal to conflictKeyFor.