mirror of
https://github.com/aljazceru/ditto.git
synced 2026-01-09 00:24:20 +01:00
Memorelay: add supportedNips property
This commit is contained in:
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user