1. Alexey Kishkin
  2. omcbp

Commits

Alexey Kishkin  committed 055773e

restore mli

  • Participants
  • Parent commits 65079dd
  • Branches default

Comments (0)

Files changed (1)

File memcache.mli

View file
  • Ignore whitespace
+type operation =
+    Get
+  | Set
+  | Add
+  | Replace
+  | Delete
+  | Increment
+  | Decrement
+  | Quit
+  | Flush
+  | GetQ
+  | Noop
+  | Version
+  | GetK
+  | GetKQ
+  | Append
+  | Prepend
+  | Stat
+  | SetQ
+  | AddQ
+  | ReplaceQ
+  | DeleteQ
+  | IncrementQ
+  | DecrementQ
+  | QuitQ
+  | FlushQ
+  | AppendQ
+  | PrependQ
+type magic = Request | Response
+type response_status =
+    MC_No_error
+  | MC_Key_not_found
+  | MC_Key_exists
+  | MC_Value_too_large
+  | MC_Invalid_argument
+  | MC_Item_not_stored
+  | MC_Unknown_comamnd
+  | MC_Out_of_memory
+exception Bad_memcache_format of string
+val set_i8 : Buffer.t -> int -> unit
+val set_i16 : Buffer.t -> int -> unit
+val set_i32 : Buffer.t -> int -> unit
+val set_int32 : Buffer.t -> int32 -> unit
+val set_int64 : Buffer.t -> int64 -> unit
+val get_i8 : string -> int -> int
+val get_i16 : string -> int -> int
+val get_i32 : string -> int -> int
+val get_int32 : string -> int -> int32
+val get_int64 : string -> int -> int64
+class memcache_connector :
+  string ->
+  int ->
+  object
+    val host : string
+    val mutable i_channel : in_channel
+    val mutable o_channel : out_channel
+    val port : int
+    method add :
+      string -> string -> int -> int -> response_status * string * string
+    method addq : string -> string -> int -> int -> unit
+    method append : string -> string -> response_status * string * string
+    method appendq : string -> string -> unit
+    method decode_body :
+      string -> int -> int -> int -> string * string * string
+    method decode_header :
+      string -> int * int * response_status * int * int * int64 * int
+    method decr :
+      string -> int64 -> int64 -> int -> response_status * string * int64
+    method decrq : string -> int64 -> int64 -> int -> unit
+    method delete : string -> response_status * string * string
+    method deleteq : string -> unit
+    method encode_packet :
+      operation -> string -> string -> string -> int -> int64 -> string
+    method flush : int -> response_status * string * string
+    method flushq : int -> unit
+    method get : string -> response_status * string * string
+    method incr :
+      string -> int64 -> int64 -> int -> response_status * string * string
+    method incrq : string -> int64 -> int64 -> int -> unit
+    method magic_code_decode : int -> magic
+    method magic_code_encode : magic -> int
+    method multiget : string list -> (response_status * string * string) list
+    method noop : response_status * string * string
+    method operation_encode : operation -> int
+    method prepend : string -> string -> response_status * string * string
+    method prependq : string -> string -> unit
+    method printhex : string -> unit
+    method quit : response_status * string * string
+    method quitq : unit
+    method read_answer :
+      response_status * int * string * string * string * int * int64
+    method replace :
+      string -> string -> int -> int -> response_status * string * string
+    method replaceq : string -> string -> int -> int -> unit
+    method response_status_decode : int -> response_status
+    method set :
+      string -> string -> int -> int -> response_status * string * string
+    method setq : string -> string -> int -> int -> unit
+    method stat : string -> response_status * string * string
+    method stat_all : (response_status * string * string) list
+    method version : response_status * string * string
+  end
+val presult : response_status * string * string -> unit
+val c : memcache_connector