feat(core): new async global state storage impl (#11794)

This commit is contained in:
CatsJuice committed 2025-04-23 05:28:21 +00:00
1 parent 9baef237f2
commit 9b2cf5cafa
5 files changed
+155 -2

No files matched your search

@@ -0,0 +1,10 @@
import { type Observable } from 'rxjs';
export interface AsyncMemento {
watch<T>(key: string): Observable<T | undefined>;
get<T>(key: string): Promise<T | undefined>;
set<T>(key: string, value: T | undefined): Promise<void>;
del(key: string): Promise<void>;
clear(): Promise<void>;
keys(): Promise<string[]>;
}
@@ -1,2 +1,3 @@
export * from './async-memento';
export * from './kv';
export * from './memento';