package hiredis
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Module Hiredis.Value
type t = valueval nil : tGet a nil value
val string : string -> tConvert an OCaml string to a Hiredis string
val int64 : int64 -> tConvert an int64 to Hiredis number
val int : int -> tConvert an int to Hiredis number
val error : string -> tCreate an error value
val status : string -> tCreate a status or "simple string" value
val is_nil : t -> boolval is_error : t -> boolval to_string : t -> stringto_string v converts v to a string, otherwise Invalid_value is raised
val to_int64 : t -> int64to_int64 v converts v to an int64, otherwise Invalid_value is raised
val to_int : t -> intto_int v converts v to an int, otherwise Invalid_value is raised
val to_float : t -> floatto_float v converts v to a float, otherwise Invalid_value is raised
to_array v converts v to an array of values if v is an array value, * otherwise Invalid_value is raised
to_list v converts v to a list of values if v is an array value, * otherwise Invalid_value is raised