如何开始的memcached [英] how to start with memcached

查看:101
本文介绍了如何开始的memcached的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

目前我的工作中,我需要使用memcached的一个项目。我已经经历了很多的网页链接的研究,但我不知道如何开始使用memcached的。我已经用MongoDB的工作,但我想用的memcached的配置帮助。

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 have already worked with mongodb but would like help with configuration of memcached.

我使用Windows 7操作系统,并使用至今以下链接。

I am using windows 7 operating system and have used the following links so far.

的http:// www.codeforest.net/how-to-install-memcached-on-windows-machine

http://memcached.org/

http://www.codeproject.com/KB/aspnet/memcached_aspnet.aspx

推荐答案

好吧,我终于得到了答案......

Well, finally I got the answer...

我已经通过对内存缓存,相关的50多种链接了最好的,仅这给你如何在项目实施的memcache链接

I have gone through more then 50 link related to memcache,the best and only link which give you how to implement memcache in your project is

http://www.codeproject.com/script/Articles/ArticleVersion.aspx?aid=96698&av=163627

和理论知识,请参考以下

and for theoretical knowledge please refer the link below

http://code.google.com/p/memcached/wiki/FAQ#What_is_the_maximum_data_size_you_can_store?_(1_megabyte)

代码示例

http://www.koders.com/csharp/fid80DA3A5A619DF298A8902A3E74A94B7A126D0438.aspx?s=socket

我创建小文件看看,你开始的memcache

I have created the small document have a look before you start memcache

        /// difference between set and add and replace

        /// add property do not use to add key which is already exist in memcache
        /// set use to overwite the key if that is already exist in memcache
        /// if key already exist ,replace property can replace it other wise not,where else set property use to replace if key already exist other wise it will add new key in the memcache


        ///Important
        ///
        /// if u are fetching the key which do not exist in memcache it will return null,as well if u are fetching the key whose value is null in memcache it will return null
        /// so avoid inserting the key with null value
        /// 
        ///If you simply want to avoid key collision between different types of data, simply prefix your key with a useful string. For example: "slash_1", "pradeep_1".  
        ///
        /// 
        /// 
        /// FlushAll() method use to remove(Flush) every thing from memcache
        /// 
        /// Stats() gives every information about the memcache like total items,connections,pId etc.....


        /// difference between increment, decrement
        /// 
        /// to use Increment or Decrement first u need to store counter by StoreCounter method else u will get null
        ///


        /// difference between GetMultiple and GetMultipleArray
        /// 
        ///GetMultiple gives you the object with there key and GetMultipleArray gives you the object not the key

这篇关于如何开始的memcached的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆