@xompass/sdk-cloud-api
Version:
Xompass Client for cloud-api
30 lines (29 loc) • 854 B
TypeScript
import { ClientStorage } from "./ClientStorage";
export declare class MemoryStorage implements ClientStorage {
storage: {
[key: string]: any;
};
/**
* @method get
* @param key Storage key name
* @description
* The getter will return any type of data persisted in localStorage.
*/
get(key: string): any;
/**
* @method set
* @param key Storage key name
* @param value Any value
* @param [expires] The date of expiration (Optional)
* @description
* The setter will return any type of data persisted in localStorage.
*/
set(key: string, value: any, expires?: Date): void;
/**
* @method remove
* @param key Storage key name
* @description
* This method will remove a localStorage item from the client.
*/
remove(key: string): void;
}