package jsoo_storage

  1. Overview
  2. Docs

WebStorage is a wrapper around the DOMStorage API. The binding provides an OCaml API for using DOMStorage. The library is fragmented in two submodules : Session and Local.

Shortcut for Dom_html.storage Js.t

Exceptions

exception Not_supported

Raised if the Storage is not supported by the browser

exception Not_found

This exception will be raised in particular case of conversion

Events

class type storageEvent = object ... end

Patch of StorageEvent (because Key could be null !)

Interfaces

module type STORAGE = sig ... end

The basic interface of a storage handler. A Storage is basically a Key/Value store, using string for the keys and the values. This implémentation is a low-level binding for the API.

Concrete implementation

module Local : STORAGE

Support for LocalStorage

module Session : STORAGE

Support for SessionStorage