This module implements a local storage.
Types
LocalStorageType = object
- Local storage. This type has no no real data. Source Edit
Consts
LocalStorage = ()
- Source Edit
Procs
proc `[]`(localStorage: LocalStorageType; key: string): Pon2Result[cstring] {. inline, noinit, ...raises: [], tags: [], forbids: [].}
- Source Edit
proc `[]=`(localStorage: LocalStorageType; key: string; val: cstring) {.inline, noinit, ...raises: [], tags: [], forbids: [].}
- Source Edit
proc contains(localStorage: LocalStorageType; key: string): bool {.inline, noinit, ...raises: [], tags: [], forbids: [].}
- Source Edit
proc del(localStorage: LocalStorageType; key: string) {.inline, noinit, ...raises: [], tags: [], forbids: [].}
- Deletes the key. If the key is not contained in the local storage, does nothing. Source Edit