package sihl-cache

  1. Overview
  2. Docs
Cache service implementations for Sihl

Install

dune-project
 Dependency

Authors

Maintainers

Sources

2.0.0.tar.gz
md5=8cde8cf002a145dc3223568924a34ba3
sha512=d61b776017feeb5e0a24624fa4c5db6f30d7c7badd8c696283cf51baf0c36d4d3335fee0fdf835e6d7289ce51d36439463014ce3b25a2eb15d05f331c094aa86

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

Module Sihl_cache.MariaDbSource

include Sihl.Contract.Cache.Sig
Sourceval set : ?ctx:(string * string) list -> (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 : ?ctx:(string * string) list -> 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