Merle Updates.
Joe Williams - - January 15, 2009I just pushed out some new code to github for merle. It should have some nice new treats in it for you including a new recieve loop for large objects. Just to make sure it worked properly I ran md5’s on the input and output, example below. In the last few days I have also added a few new calls such as version/1 which gets the memcached version for you. Check out the readme for examples and entire API. Things are getting close to the first full release so stay tuned.
2> merle:start_link(”localhost”, 11211).
{ok,<0.38.0>}
3> {ok, TestPDF} = file:read_file(”test.pdf”).
{ok,<<"%PDF-1.4\n11 0 obj\n<< /S /GoTo /D (Outline1) >>\nendobj\n14 0 obj\n(Introduction)\nendobj\n15 0 obj\n<< /S /GoTo /D"...>>}
4> merle:set(”a”, “1″, “0″, TestPDF).
[“STORED”]
5> merle:get(”a”).
[<<”%PDF-1.4\n11 0 obj\n<< /S /GoTo /D (Outline1) >>\nendobj\n14 0 obj\n(Introduction)\nendobj\n15 0 obj\n<< /S /GoTo /D (Ou”...>>]
6> [TestPDF1] = merle:get(”a”).
[<<”%PDF-1.4\n11 0 obj\n<< /S /GoTo /D (Outline1) >>\nendobj\n14 0 obj\n(Introduction)\nendobj\n15 0 obj\n<< /S /GoTo /D (Ou”...>>]
7> erlang:md5(TestPDF).
<<120,165,244,215,18,94,214,215,236,65,148,80,135,39,68,
125>>
8> erlang:md5(TestPDF1).
<<120,165,244,215,18,94,214,215,236,65,148,80,135,39,68,
125>>
Categories: Blogs Joe Williams
Comments
No comments so far, you could be the first.Add comment
Erlang on Twitter
» koher (koher): 本の並びが順に、Struts、SaaS、Slim3、Ajax、Spring、Scala、Erlang、Seasar2ってもうカオスだ…。
» josevalim (José Valim): Sweet. homebrew updated Erlang recipe to R15B, going to make it the required dependency for Elixir.
» stackfeed (StackOverflow): Erlang: unmarshalling variable length data fields in binary stream: I’m creating an Erlang application that need… http://t.co/0yDGJWz7
» tugocof (Bilski Storer): Viola Tricolor L. in Morphologischer, Anatomischer Und Biologischer Beziehung: Inaugural-Dissertation Zur Erlang… http://t.co/C4ojnX3h
» mickael (Mickaël Rémond): Hehe :)
RT @ostinelli spent the whole day in building an #ejabberd module. i just love this stuff. ^^_ #erlang
» darkproger (proger): RT @metabrew: If you use vim for #erlang, you might be interested in my rebar-friendly vimerl modifications: https://t.co/dSIKOs9p
» bipthelin (Bip Thelin): haven’t seen Hotline in a while RT “@github_erlang: hotline - Browser based Hotline client in Erlang http://t.co/mF50rC7D”
» erlang (Andreas Åkre Solberg): Mine bilder fra vakre Helgeland http://t.co/WNSNhNiw i min nye fancy bildefremviser
» github_erlang (GitHub Erlang): hotline - Browser based Hotline client in Erlang http://t.co/iLT9GmOG
» oki_dimas (Oki dimas mahendra ): Km wuching “@HammyDC: Bkan.. Aq dewa erlang.. RT @oki_dimas Bukan siluman “@HammyDC: Aq jdi yoko klo gtu..”
Statistics
Number of aggregated posts: 10454
Number of comments: 1392
Most recent article: January 31, 2012
Latest comments
» nobelboy on OpaDo Data Storage: Feel free to add some Qs here or contact me offline, and I will see what I can work into…
» darrensy on The Twisted Matrix: This has been a great idea you have shared. covers for kindle
» jony on Principle Software Engineer at LonoCloud (Full-time): That provides will become a internet marketer of little kinds of expert methods developers developing strategy using Erlang/OTP. There will…