Skip to content

andreas/ocaml-memcached

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OCaml memcached client using core, async and bitstring.

Example

open Core.Std
open Async.Std

module Ints = struct
    type t = int
    let to_string = string_of_int
    let of_string = int_of_string
end

module IntCache = Memcached.Make(Ints)

let main () =
	IntCache.connect "localhost" 11212 >>= fun cache ->
	IntCache.set cache "foo" 123 >>= fun result ->
	IntCache.get cache "foo" >>= fun result ->
	IntCache.close cache
in
main ();
Scheduler.go ()

Status

This project is work in progress.

Issues include:

  • It hasn't been packaged up for OPAM yet.
  • Insufficient handling of 32 bit ints from memcached.
  • bitstring is currently a dependency. I'm considering getting rid of it or fix the string copying which is currently happening under the covers (Bitstring.string_of_bitstring).

About

OCaml memcached client using core, async and bitstring.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages