Module Key_value_database.Make_mock

Parameters

module Key : Core_kernel.Hashable.S
module Value : sig ... end

Signature

include Intf.Ident with type t = Value.t Key.Table.t with type key := Key.t with type value := Value.t with type config := unit
type t = Value.t Key.Table.t
val create : unit -> t
val close : t -> unit
val get : t -> key:Key.t -> Value.t option Monad.Ident.t
val get_batch : t -> keys:Key.t list -> Value.t option list Monad.Ident.t
val set : t -> key:Key.t -> data:Value.t -> unit Monad.Ident.t
val remove : t -> key:Key.t -> unit Monad.Ident.t
val set_batch : t -> ?remove_keys:Key.t list -> update_pairs:(Key.t * Value.t) list -> unit Monad.Ident.t
val to_alist : t -> (Key.t * Value.t) list Monad.Ident.t
val random_key : t -> Key.t option
val to_sexp : t -> key_sexp:( Key.t -> Core_kernel.Sexp.t ) -> value_sexp:( Value.t -> Core_kernel.Sexp.t ) -> Core_kernel.Sexp.t