1234567891011121314151617181920letname="cache"exceptionExceptionofstringmoduletypeSig=sig(* TODO [jerben] Add a non-optional argument to define time to live *)(** [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. *)valset:?ctx:(string*string)list->string*stringoption->unitLwt.t(** [find key] returns the value that is associated with [key]. *)valfind:?ctx:(string*string)list->string->stringoptionLwt.tvalregister:unit->Core_container.Service.tincludeCore_container.Service.Sigend