æè¿ãKey-Value Storeã£ã¦ãããNoSQLã«èå³ãããã®ã§Key-Value Storeç³»ã§ä¸çªã·ã³ãã«ãããªmemcachedãæåã«è©¦ãã¦ã¿ã¾ããã ç°å¢ãæ´ãã OSã¯Ubuntu10.04ã§ãã åããããåããããã ããªã®ã§apt-getã§memcachedãã¤ã³ã¹ãã¼ã«ãã¦ããã©ã«ãã®è¨å®ã§åããã¾ãã 使ç¨ããè¨èªã¯rubyã§memcache-clientã¨ããã©ã¤ãã©ãªãå©ç¨ãã¦memcachedã¨éä¿¡ãã¾ãã sudo apt-get install memcached sudo gem install memcache-client sudo gem install system_timer system_timerã¨ããã©ã¤ãã©ãªãmemcache-clientãåããã®ã«å¿ è¦ã¿ããã§ã å®éã«åãã memcache-clientã¯Marshalã
å½ç¶ã®ãã¨ãmemcachedãæéã ãããããã¨æããããããã§ããªãçµæã«ããããä¸çªé ãçµæã«ããªãã ããã¼ã¼ã¼ã¨æã£ã¦èª¿ã¹ç¶ãã¦ããã®ã§ããããã¤ã³ãã£ã³ã°ã®gemã®ã³ã¼ãã追ããããããããã©ããããã¯memcache-clientã®å®è£ ãåå ã®ããã ããã¯ãmemcache-clientã®å®è£ ã¯pure-rubyã§å®è£ ããã¦ããã®ã«å¯¾ãã¦ãTokyoCabinet/TokyoTyrantã®ãã¤ã³ãã£ã³ã°ã®å®è£ ã¯nativeã³ã¼ãã§å®è£ ããã¦ããã®ãåå ã®ããã§ããäºå®ãTokyoTyrantã¯memcacheãããã³ã«ãå®è£ ãã¦ããã®ã§ãmemcache-clientãå©ç¨ãã¦TokyoTyrantã«ã¢ã¯ã»ã¹ããã¨ä¸¡è ã¯ãããªçµæã«ãªãã¾ããã user system total real
ActiveRecord ããã£ãã·ã¥ãããããããªããªãã« acts_as_cachedã 1. Install memcached. http://www.danga.com/memcached/download.bml ãã memcached ã®ææ°çãã¤ã³ã¹ãã¼ã«ã éä¸ãlibevent ãå¿ è¦ã ã£ãã®ã§ããã£ã¡ãå ã«ã¤ã³ã¹ãã¼ã«ãã¦ããã 2. Install memcache-client. $ sudo gem install memcache-clientåèã«ããããã¥ã¡ã³ãã«ã¯ memcached-client ã£ã¦æ¸ãã¦ãã£ããã©ãããééããd ãããªãï¼ 3. Install this plugin. $ cd RAILS_ROOT $ ruby script/plugin install svn://errtheblog.com/svn/plugins/ac
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}