PresenceCache class
Cache for peer presence information with TTL
Constructors
- PresenceCache({Duration? cacheTtl})
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
-
cleanupExpired(
) → int - Cleanup expired cache entries
-
clear(
) → void - Clear all cached entries
-
get(
PeerId peerId) → PresenceStatus? - Get cached presence status for a peer
-
getCachedPeers(
) → List< PeerId> - Get all cached peers
-
getStats(
) → Map< String, dynamic> - Get cache statistics
-
has(
PeerId peerId) → bool - Check if peer has cached presence
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
remove(
PeerId peerId) → void - Remove peer from cache
-
toString(
) → String -
A string representation of this object.
override
-
update(
PresenceStatus status) → void - Update cache with new presence status
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited