how to start with memcached

前端 未结 3 1532
小蘑菇
小蘑菇 2021-02-01 08:43

Currently I am working on a project in which I need to use memcached. I have researched through a lot of web links but I do not understand how to get started with memcached. I h

3条回答
  •  南方客
    南方客 (楼主)
    2021-02-01 08:49

    You will need a Memcache server and a Memcache client.

    I've found one of the best Memcache servers for Windows platforms is http://www.membase.com/products-and-services/memcached

    It is built by the original Memcached developers. Setup takes a few minutes and configuration is very easy through their web interface.

    The recommended Memcache client for .NET is Enyim http://memcached.enyim.com/

    You can find configuration examples for Enyim at https://github.com/enyim/EnyimMemcached/wiki

    Alternatively, I've actually found Microsoft AppFabric Caching (codenamed Velocity) to work better for .NET. I had serialization issues with Memcache and Linq objects, and AppFabric worked without a problem.

    Here is a tutorial on AppFabric if you're interested in that as well

    http://www.hanselman.com/blog/InstallingConfiguringAndUsingWindowsServerAppFabricAndTheVelocityMemoryCacheIn10Minutes.aspx

提交回复
热议问题