Memcached
Memcached: Free & open source, high-performance, distributed memory object caching system,in-memory key-value store
项目:http://code.google.com/p/memcached/
Windows版本
http://splinedancer.com/memcached-win32/
http://code.jellycan.com/memcached/
服务端程序memcached.exe,命令行运行,"-h"显示所有参数选项,其中"-d start"为启动服务端,"-d install"为安装到windows服务。
客户端
可以通过命令行Telnet到服务端,查看信息
telnet 127.0.0.1 11211
stats
http://code.google.com/p/memcached/wiki/Clients
本文在C#中使用BeIT Memcached Client
http://code.google.com/p/beitmemcached/
示例:
MemcachedClient.Setup("TestCache", new string[] { "192.168.1.39" });
MemcachedClient cache = MemcachedClient.GetInstance("TestCache");
cache.SendReceiveTimeout = 5000;
cache.MinPoolSize = 1;
cache.MaxPoolSize = 5;
cache.Set("jackcai", "解压BeITMemcached_source_2008_05_31.zip,它是.net 2.0开发的客户端,里面是全部源代码和一个调用示例。");
object obj = cache.Get("jackcai");
Console.WriteLine(obj);
Console.Read();
MemcachedClient cache = MemcachedClient.GetInstance("TestCache");
cache.SendReceiveTimeout = 5000;
cache.MinPoolSize = 1;
cache.MaxPoolSize = 5;
cache.Set("jackcai", "解压BeITMemcached_source_2008_05_31.zip,它是.net 2.0开发的客户端,里面是全部源代码和一个调用示例。");
object obj = cache.Get("jackcai");
Console.WriteLine(obj);
Console.Read();