MCPcopy
hub / github.com/bitpay/wallet / IStorage

Interface IStorage

src/providers/persistence/storage/istorage.ts:3–8  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1import { InjectionToken } from '@angular/core';
2
3export interface IStorage {
4 get(k: string): Promise<any>;
5 set(k: string, v): Promise<void>;
6 remove(k: string): Promise<void>;
7 create(k: string, v): Promise<void>;
8}
9
10export class KeyAlreadyExistsError extends Error {
11 constructor() {

Callers

nothing calls this directly

Implementers 3

LocalStoragesrc/providers/persistence/storage/loca
RamStoragesrc/providers/persistence/storage/ram-
FileStoragesrc/providers/persistence/storage/file

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…