Sunday, 16 October 2011

Memcached C#

image

Memcached is a distributed object memory caching system, acting as an in-memory key-value store for small chunks of arbitrary data (strings, objects) from results of database calls, API calls, or page rendering.

Downloads

Client library source and demo for C#:  http://sourceforge.net/projects/memcacheddotnet/

Client library binary for C#:  http://stevenhollidge.com/blog-source-code/memcached-windows-client-binary.zip

Server runtime for Windows:  http://stevenhollidge.com/blog-source-code/memcached-windows-server.zip

How to start the Server

To run the server with 2 Gb of memory (2000Mb), copy the files from the above server download into C:\Program Files\memcached directory and execute the following command:

image

Simple client code example

Benchmark with simple example: key=“key:n”, value=”MyData”

Example benchmarks with 1 million sets and gets, the source code can be found within the client library download above:

image

No comments:

Post a Comment