package sihl-cache

  1. Overview
  2. Docs
Cache service implementations for Sihl

Install

Dune Dependency

Authors

Maintainers

Sources

3.0.5.tar.gz
md5=20516760578c31cfc0e56db9bb84cebc
sha512=787252e6acd1010ae3ffd8105f4abff4f66c5d6efffee827f2ffc6695a2ad7cea6b859dc62398acf4c7e8b08ffa44a5974fa14faf68f623db14e91e96f0e65e6

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

Module Sihl_cache.PostgreSqlSource

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
OCaml

Innovation. Community. Security.