Skip to content

Class StorageManager

Source: storageManager.ts

Deprecated

Use Storage instead.

Constructors

Constructor

new StorageManager(): StorageManager

Returns

StorageManager

Properties

MAX_BYTES

static MAX_BYTES: number = 5_000_000

Methods

store()

static store(key: string, value: string): void

Parameters

key

string

value

string

Returns

void


load()

static load(key: string): string | null

Parameters

key

string

Returns

string | null


clear()

static clear(): void

Returns

void


getByteSize()

static getByteSize(string: string | null): number

Parameters

string

string | null

Returns

number


byteToKilobyte()

static byteToKilobyte(bytes: number): number

Parameters

bytes

number

Returns

number

Built by Prozilla