@opendash/plugin-parse
Version:
Parse Server Plugin for open.DASH
15 lines (14 loc) • 574 B
TypeScript
import { UserInterface, StorageAdapterInterface, StorageAdapterContext } from "opendash";
import { AdapterOptions } from "./types";
export declare class ParseStorageAdapter implements StorageAdapterInterface {
private userDataCache;
private context;
private options;
constructor(options?: Partial<AdapterOptions>);
onContext(context: StorageAdapterContext): void;
onUser(user: UserInterface): void;
private init;
set(key: string, value: any): Promise<void>;
delete(key: string): Promise<void>;
clear(): Promise<void>;
}