Skip to content

Class swarmauri_core.pop.ipop.ReplayHooks

swarmauri_core.pop.ipop.ReplayHooks

Bases: Protocol

Protocol for replay-detection storage hooks.

seen

seen(scope, key)
Source code in swarmauri_core/pop/ipop.py
13
def seen(self, scope: str, key: str) -> bool: ...

mark

mark(scope, key, ttl_s)
Source code in swarmauri_core/pop/ipop.py
15
def mark(self, scope: str, key: str, ttl_s: int) -> None: ...