package orewa

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module OrewaSource

Sourcetype t
Sourcetype common_error = [
  1. | `Connection_closed
  2. | `Eof
  3. | `Unexpected
]
Sourceval echo : t -> string -> (string, [> common_error ]) Async.Deferred.Result.t
Sourcetype exist =
  1. | Not_if_exists
  2. | Only_if_exists
Sourceval set : t -> key:string -> ?expire:Core.Time.Span.t -> ?exist:exist -> string -> (unit, [> 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 scan : ?pattern:string -> ?count:int -> t -> 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.