Memorelay: add supportedNips property
This commit is contained in:
parent
f667ba3c69
commit
cfe44876af
|
@ -10,6 +10,11 @@ class Memorelay implements EventStore {
|
||||||
this.#cache = new LRUCache<string, Event>(...args);
|
this.#cache = new LRUCache<string, Event>(...args);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** NIPs supported by this storage method. */
|
||||||
|
get supportedNips(): number[] {
|
||||||
|
return [1];
|
||||||
|
}
|
||||||
|
|
||||||
/** Iterate stored events. */
|
/** Iterate stored events. */
|
||||||
*#events(): Generator<Event> {
|
*#events(): Generator<Event> {
|
||||||
for (const event of this.#cache.values()) {
|
for (const event of this.#cache.values()) {
|
||||||
|
|
Loading…
Reference in New Issue