StorageStrategy
katanakit-js / StorageStrategy
Interface: StorageStrategy
Section titled “Interface: StorageStrategy”Defined in: types/core/storage.ts:8
Strategy contract: homogeneous storage without any.
Methods
Section titled “Methods”useClear()
Section titled “useClear()”useClear(): void;Defined in: types/core/storage.ts:12
Returns
Section titled “Returns”void
useGetItem()
Section titled “useGetItem()”useGetItem<T>(key): T | null;Defined in: types/core/storage.ts:9
Type Parameters
Section titled “Type Parameters”| Type Parameter | Default type |
|---|---|
T |
unknown |
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
key |
string |
Returns
Section titled “Returns”T | null
useRemoveItem()
Section titled “useRemoveItem()”useRemoveItem(key): void;Defined in: types/core/storage.ts:11
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
key |
string |
Returns
Section titled “Returns”void
useSetItem()
Section titled “useSetItem()”useSetItem(key, value): void;Defined in: types/core/storage.ts:10
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
key |
string |
value |
unknown |
Returns
Section titled “Returns”void