package orewa

  1. Overview
  2. Docs
Async-friendly Redis client

Install

Dune Dependency

Authors

Maintainers

Sources

orewa-0.2.1.tbz
sha256=50c2bc62230a94f0856b9f2e414c6bff501fbf2071438d17cabdc0093bee718a
sha512=fba593b4fa15b557dceb3aa11e26a56f0de0308b321bf6e57b4d064f316efa18f5af44387e36c60509bfd954767230275dd29a051a95c8dcaad558b035d2778b

doc/orewa/Orewa/index.html

Module OrewaSource

Sourcetype t
Sourcetype common_error = [
  1. | `Connection_closed
  2. | `Unexpected
]
Sourceval echo : t -> string -> (string, [> common_error ]) Async.Deferred.Result.t
Sourcetype exist =
  1. | Always
  2. | Not_if_exists
  3. | Only_if_exists
Sourceval set : t -> key:string -> ?expire:Core.Time.Span.t -> ?exist:exist -> string -> (bool, [> common_error ]) Async.Deferred.Result.t
Sourceval get : t -> string -> (string option, [> common_error ]) Async.Deferred.Result.t
Sourceval getrange : t -> start:int -> end':int -> string -> (string, [> common_error ]) Async.Deferred.Result.t
Sourceval getset : t -> key:string -> string -> (string option, [> common_error ]) Async.Deferred.Result.t
Sourceval strlen : t -> string -> (int, [> common_error ]) Async.Deferred.Result.t
Sourceval mget : t -> string list -> (string option list, [> common_error ]) Async.Deferred.Result.t
Sourceval mset : t -> (string * string) list -> (unit, [> common_error ]) Async.Deferred.Result.t
Sourceval msetnx : t -> (string * string) list -> (bool, [> common_error ]) Async.Deferred.Result.t
Sourceval lpush : t -> key:string -> string -> (int, [> common_error ]) Async.Deferred.Result.t
Sourceval lrange : t -> key:string -> start:int -> stop:int -> (string list, [> common_error ]) Async.Deferred.Result.t
Sourceval append : t -> key:string -> string -> (int, [> common_error ]) Async.Deferred.Result.t
Sourceval auth : t -> string -> (unit, [> `Redis_error of string | common_error ]) Async.Deferred.Result.t
Sourceval bgrewriteaof : t -> (string, [> common_error ]) Async.Deferred.Result.t
Sourceval bgsave : t -> (string, [> common_error ]) Async.Deferred.Result.t
Sourceval bitcount : t -> ?range:(int * int) -> string -> (int, [> common_error ]) Async.Deferred.Result.t
Sourcetype overflow =
  1. | Wrap
  2. | Sat
  3. | Fail
Sourcetype intsize =
  1. | Signed of int
  2. | Unsigned of int
Sourcetype offset =
  1. | Absolute of int
  2. | Relative of int
Sourcetype fieldop =
  1. | Get of intsize * offset
  2. | Set of intsize * offset * int
  3. | Incrby of intsize * offset * int
Sourceval bitfield : t -> ?overflow:overflow -> string -> fieldop list -> (int option list, [> common_error ]) Async.Deferred.Result.t
Sourcetype bitop =
  1. | AND
  2. | OR
  3. | XOR
  4. | NOT
Sourceval bitop : t -> destkey:string -> ?keys:string list -> key:string -> bitop -> (int, [> common_error ]) Async.Deferred.Result.t
Sourcetype bit =
  1. | Zero
  2. | One
Sourceval bitpos : t -> ?start:int -> ?end':int -> string -> bit -> (int option, [> common_error ]) Async.Deferred.Result.t
Sourceval getbit : t -> string -> int -> (bit, [> common_error ]) Async.Deferred.Result.t
Sourceval setbit : t -> string -> int -> bit -> (bit, [> common_error ]) Async.Deferred.Result.t
Sourceval decr : t -> string -> (int, [> common_error ]) Async.Deferred.Result.t
Sourceval decrby : t -> string -> int -> (int, [> common_error ]) Async.Deferred.Result.t
Sourceval incr : t -> string -> (int, [> common_error ]) Async.Deferred.Result.t
Sourceval incrby : t -> string -> int -> (int, [> common_error ]) Async.Deferred.Result.t
Sourceval incrbyfloat : t -> string -> float -> (float, [> common_error ]) Async.Deferred.Result.t
Sourceval select : t -> int -> (unit, [> common_error ]) Async.Deferred.Result.t
Sourceval del : t -> ?keys:string list -> string -> (int, [> common_error ]) Async.Deferred.Result.t
Sourceval exists : t -> ?keys:string list -> string -> (int, [> common_error ]) Async.Deferred.Result.t
Sourceval expire : t -> string -> Core.Time.Span.t -> (int, [> common_error ]) Async.Deferred.Result.t
Sourceval expireat : t -> string -> Core.Time.t -> (int, [> common_error ]) Async.Deferred.Result.t
Sourceval keys : t -> string -> (string list, [> common_error ]) Async.Deferred.Result.t
Sourceval sadd : t -> key:string -> ?members:string list -> string -> (int, [> common_error ]) Async.Deferred.Result.t
Sourceval scan : ?pattern:string -> ?count:int -> t -> string Async.Pipe.Reader.t
Sourceval scard : t -> string -> (int, [> common_error ]) Async.Deferred.Result.t
Sourceval sdiff : t -> ?keys:string list -> string -> (string list, [> common_error ]) Async.Deferred.Result.t
Sourceval sdiffstore : t -> destination:string -> ?keys:string list -> key:string -> (int, [> common_error ]) Async.Deferred.Result.t
Sourceval sinter : t -> ?keys:string list -> string -> (string list, [> common_error ]) Async.Deferred.Result.t
Sourceval sinterstore : t -> destination:string -> ?keys:string list -> key:string -> (int, [> common_error ]) Async.Deferred.Result.t
Sourceval sismember : t -> key:string -> string -> (bool, [> common_error ]) Async.Deferred.Result.t
Sourceval smembers : t -> string -> (string list, [> common_error ]) Async.Deferred.Result.t
Sourceval smove : t -> source:string -> destination:string -> string -> (bool, [> common_error ]) Async.Deferred.Result.t
Sourceval spop : t -> ?count:int -> string -> (string list, [> common_error ]) Async.Deferred.Result.t
Sourceval srandmember : t -> ?count:int -> string -> (string list, [> common_error ]) Async.Deferred.Result.t
Sourceval srem : t -> key:string -> ?members:string list -> string -> (int, [> common_error ]) Async.Deferred.Result.t
Sourceval sunion : t -> ?keys:string list -> string -> (string list, [> common_error ]) Async.Deferred.Result.t
Sourceval sunionstore : t -> destination:string -> ?keys:string list -> key:string -> (int, [> common_error ]) Async.Deferred.Result.t
Sourceval sscan : t -> ?pattern:string -> ?count:int -> string -> string Async.Pipe.Reader.t
Sourceval move : t -> string -> int -> (bool, [> common_error ]) Async.Deferred.Result.t
Sourceval persist : t -> string -> (bool, [> common_error ]) Async.Deferred.Result.t
Sourceval randomkey : t -> (string, [> common_error ]) Async.Deferred.Result.t
Sourceval rename : t -> string -> string -> (unit, [> common_error ]) Async.Deferred.Result.t
Sourceval renamenx : t -> key:string -> string -> (bool, [> common_error ]) Async.Deferred.Result.t
Sourcetype order =
  1. | Asc
  2. | Desc
Sourceval sort : t -> ?by:string -> ?limit:(int * int) -> ?get:string list -> ?order:order -> ?alpha:bool -> ?store:string -> string -> ([> `Count of int | `Sorted of string list ], [> common_error ]) Async.Deferred.Result.t
Sourceval ttl : t -> string -> (Core.Time.Span.t, [> `No_such_key of string | `Not_expiring of string | common_error ]) Async.Deferred.Result.t
Sourceval type' : t -> string -> (string option, [> common_error ]) Async.Deferred.Result.t
Sourceval dump : t -> string -> (string option, [> common_error ]) Async.Deferred.Result.t
Sourceval restore : t -> key:string -> ?ttl:Core.Time.Span.t -> ?replace:bool -> string -> (unit, [> common_error ]) Async.Deferred.Result.t
Sourceval connect : ?port:int -> host:string -> t Async.Deferred.t
Sourceval close : t -> unit Async.Deferred.t
Sourceval with_connection : ?port:int -> host:string -> (t -> 'a Async.Deferred.t) -> 'a Async.Deferred.t
OCaml

Innovation. Community. Security.