mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 11:29:46 +00:00
Memorelay: add supportedNips property
This commit is contained in:
parent
f667ba3c69
commit
cfe44876af
1 changed files with 5 additions and 0 deletions
|
|
@ -10,6 +10,11 @@ class Memorelay implements EventStore {
|
|||
this.#cache = new LRUCache<string, Event>(...args);
|
||||
}
|
||||
|
||||
/** NIPs supported by this storage method. */
|
||||
get supportedNips(): number[] {
|
||||
return [1];
|
||||
}
|
||||
|
||||
/** Iterate stored events. */
|
||||
*#events(): Generator<Event> {
|
||||
for (const event of this.#cache.values()) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue