package jsoo_storage

  1. Overview
  2. Docs

Module WebStorageSource

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

Sourceexception Not_supported

Raised if the Storage is not supported by the browser

Sourceexception Not_found

This exception will be raised in particular case of conversion

Events

Sourceclass type storageEvent = object ... end

Patch of StorageEvent (because Key could be null !)

Interfaces

Sourcemodule 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

Support for LocalStorage

Support for SessionStorage

OCaml

Innovation. Community. Security.