feat: worker-relay delete

fix: worker-relay insert replacable events duplicate
This commit is contained in:
2024-05-23 11:59:48 +01:00
parent bb5bf34fe9
commit b764cc1535
15 changed files with 271 additions and 138 deletions

View File

@ -14,4 +14,9 @@ export interface CacheRelay {
* Read event from cache relay
*/
query(req: ReqCommand): Promise<Array<NostrEvent>>;
/**
* Delete events by filter
*/
delete(req: ReqCommand): Promise<Array<string>>;
}