Rename
This commit is contained in:
parent
5c7ba128ad
commit
498eb47fd8
2 changed files with 26 additions and 29 deletions
|
|
@ -0,0 +1,5 @@
|
|||
/** Replace the complete metadata value atomically. */
|
||||
export interface MetadataPersistenceProvider<T> {
|
||||
load: () => Promise<T | undefined>;
|
||||
save: (data: T) => Promise<void>;
|
||||
}
|
||||
|
|
@ -1,8 +0,0 @@
|
|||
/** save() atomically replaces the entire value and resolves only after both the
|
||||
* data and its directory entry are durable across power loss. Failed saves must
|
||||
* leave either complete value readable; callers retain their recovery journal.
|
||||
*/
|
||||
export interface PersistenceProvider<T> {
|
||||
load: () => Promise<T | undefined>;
|
||||
save: (data: T) => Promise<void>;
|
||||
}
|
||||
Loading…
Reference in a new issue