package sihl-cache

  1. Overview
  2. Docs
Cache service implementations for Sihl

Install

Dune Dependency

Authors

Maintainers

Sources

0.4.0.tar.gz
md5=5cfe63c96a5f4276d29b9ddb98c4bdc3
sha512=742bcdfb4bfb20be42bcf52cb7f7de8b05057524405c65f2479b476fc9f9a238461bd11d336082ccd2e2f91bfd166c597106cd1addbd12236178234421c28988

doc/sihl-cache/Sihl_cache/MariaDb/index.html

Module Sihl_cache.MariaDbSource

include Sihl.Contract.Cache.Sig
Sourceval set : (string * string option) -> unit Lwt.t

set entry inserts an entry into the cache storage. entry is a tuple where the first element is the key and the second element is the value. Since the value is an optional, set can be used to remove a value from the store like so: set ("foo", None). If a key exists already, the value is overwritten with the provided value.

Sourceval find : string -> string option Lwt.t

find key returns the value that is associated with key.

Sourceval register : unit -> Sihl__.Core_container.Service.t
Sourceval lifecycle : Sihl__.Core_container.lifecycle
OCaml

Innovation. Community. Security.