UNPKG

@lonewolfspace/storage-manager-ts

Version:

A universal browser storage manager with optional AES encryption support for localStorage, sessionStorage, and cookies.

25 lines (24 loc) 745 B
import { BaseStorageManager } from "./base-storage-manager"; export declare class ClientSessionStorageManager extends BaseStorageManager { /** * Set a value in session storage * @param key The storage key * @param value The value to store */ static setItem(key: string, value: string): void; /** * Get a value from session storage * @param key The storage key * @returns The stored value or undefined if not found */ static getItem(key: string): string | undefined; /** * Remove a value from session storage * @param key The storage key */ static removeItem(key: string): void; /** * Clear all items from session storage */ static clear(): void; }