Ai
1 Star 0 Fork 0

XYCode/orbit-db-types

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Cache.d.ts 516 Bytes
一键复制 编辑 原始数据 按行查看 历史
rigwild 提交于 2020-03-21 20:57 +08:00 . Add Cache typings
declare module "orbit-db-cache" {
import KeyValueStore from "orbit-db-kvstore";
export default class Cache<V> {
readonly _store: KeyValueStore<V>;
constructor(store: KeyValueStore<V>)
status(): any;
close(): Promise<void>;
open(): Promise<void>;
get(key: string): Promise<V>;
set(key: string, value: V): Promise<void>;
put(key: string, value: V): Promise<void>;
del(key: string): Promise<void>;
load(): void;
destroy(): void;
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/XYCode-XYC/orbit-db-types.git
git@gitee.com:XYCode-XYC/orbit-db-types.git
XYCode-XYC
orbit-db-types
orbit-db-types
main

搜索帮助