package sihl-cache

  1. Overview
  2. Docs
Cache service implementations for Sihl

Install

Dune Dependency

Authors

Maintainers

Sources

1.0.0-rc3.tar.gz
md5=a071020e3532eac75c61c2b064a8fd00
sha512=2225e1352344d86b9299f599ae3f9d5576e78ce88663eae6201bc50b4819dd2e10070aeba5c44b75b50429791754df0a7ee27cd9889132739a8a93cdd7221e8e

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_service.t
Sourceval lifecycle : Sihl__.Core_lifecycle.lifecycle
OCaml

Innovation. Community. Security.