You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
608 B
20 lines
608 B
2 years ago
|
import types = require('./types');
|
||
|
import each = require('./each');
|
||
|
import Emitter = require('./Emitter');
|
||
|
import keys = require('./keys');
|
||
|
|
||
|
declare class FileBlobStore extends Emitter {
|
||
|
constructor(path: string, data?: types.PlainObj<Buffer>);
|
||
|
set(key: string, buf: Buffer): void;
|
||
|
set(values: types.PlainObj<Buffer>): void;
|
||
|
get(key: string): Buffer | void;
|
||
|
get(keys: string[]): types.PlainObj<Buffer>;
|
||
|
remove(key: string): void;
|
||
|
remove(keys: string[]): void;
|
||
|
clear(): void;
|
||
|
each(fn: (val: Buffer, key: string) => void): void;
|
||
|
save(): void;
|
||
|
}
|
||
|
|
||
|
export = FileBlobStore;
|