Redis Command - ZUNIONSTORE(è¤æ°ã®zsetã®å¤ãçµåããæ°ããªzsetãçæ)
ããã«ã¡ã¯ï¼hiroshiã§ãï¼ ä»åã¯ãæè¿DECOLOGçéã§å¤§ãã¼ã ã®redisã«ã¤ãã¦ããã®å©ç¨ç¨éãå°å ¥æ¹æ³ã«ã¤ãã¦ã話ããããã¨æãã¾ãã ä»åã®ã話ã¨é¢é£ããéå»ã¨ã³ããªã«ä»¥ä¸ãããã¾ãã®ã§ããã¡ãã«ç®ãéãã¦ããã ããä¸ã§æ¬ã¨ã³ããªãèªãã§ããã ãã¨åãããããã¨æãã¾ãã NoSQL redisã¨MySQLã®ãã³ããã¼ã¯æ¯è¼ redisã®ãµã¼ãã¹ã¸ã®æå ¥ rediså°å ¥å¾ã«ãã©ãã«çºçããã®ã¬ãã¼ã DECOLOGã§ã®MySQL Archiveã¨ã³ã¸ã³ã®ä½¿ãæ¹ â¦ã¨ãããã¾ã§ã®ã¨ã³ããªããã¯å®éç¨ã§ãã¦ãã®ãã©ããå¾®å¦ãªã¿ããã«ãªã£ã¦ããããããã¾ããããçµè«ããããã¨å®éç¨ã§ãã¦ã¾ãï¼ ãrediså°å ¥å¾ã«ãã©ãã«çºçããã®ã¬ãã¼ããã§ã¯TTLãè¨å®ããå ´åã«ãã¾ããããªãã±ã¼ã¹ããã£ãã®ã§ãããTTLãªãã®ãã¼ã¿ã§ã¯ç¹ã«åé¡ãªãéç¨ã§ãã¾ããã ç¾å¨ã®redisã®å©ç¨
対象èªè node.js/npmã¯ã¤ã³ã¹ãã¼ã«æ¸ã¿ macãªã©ã®*nixãæã£ã¦ãã redisã¯ããããããªã redisã®ããã¨ãã å°ããï¼ãæã¡éã³ããããï¼ãè¯ãæå³ã§ä½ããªãï¼ ç´ç²KVSããå°ãè±ããªã»ã©ããçã¿ ç°¡ç´ ã§ãã®ã§ãããã©ã¼ãã³ã¹ãªã©ã«é¢ãã¦è²ã ãçããããã ãã®ãexpressä½è ããããã使ã£ã¦ãã£ãããã¾ãã åã¿ãããªã³ã³ã·ã¥ã¼ãã¼ã²ã¼ã é£æ°ã«æ¯éãªã¹ã¹ã¡ããããçµã¿è¾¼ã¿ç³»ã®è«ãã¨webã£åã£ã½ãã«ã¸ã¥ã¢ã«ãªæè¦ãåå± ããã·ã³ãã«DBã¨ãªã£ã¦ããã¾ãã redisæ¬ä½ ãã¦ã³ãã¼ããã¼ã¸ããææ°ç(ãã®æç« ãæ¸ãã¦ããæç¹ã§ã¯2.4.4)ããã¦ã³ãã¼ããã¦ãä¸è¨ã®ããã«ä¸è¡makeã¨æã¦ã°çµããã§ãã make ç¶ãã¦ã¤ã³ã¹ãã¼ã«ãããå¦ãã¯ãä»»ããã¾ãããã®æ®µéã§ããå±éãã£ã¬ã¯ããª/src/redis-serverããããã¾ãã®ã§ãèµ·åãã¦ããã¾ãã
2011å¹´07æ12æ¥19:30 ã«ãã´ãªC#mono C#ã§Redisãã¦ã¿ã MemcachedãRubyãã試ãäºå®ã ã£ããã©ãååæ°ã¾ããRedisãC#ãã試ãã¦ã¿ããã¨ã«ãã¾ããã ä»äºã§ã¯ã©ã£ã¡ãRailsã§ããäºå®ãªãã§ã家ã§è§¦ããªãC#ã§ã£ã¦ãã¨ã§ã ã¨ããããRedisãã¤ã³ã¹ãã¼ã«ã wget http://redis.googlecode.com/files/redis-2.2.11.tar.gz tar xzvf redis-2.2.11.tar.gz cd redis-2.2.11 make sudo make install å ã¿ã«http://redis.googlecode.com/ ãã®ãµã¤ãã§ã¯ãã©ã¦ã¶ä¸ã§ã¤ã³ã¿ã©ã¯ãã£ãã«Redisã®ã³ãã³ããå©ããTutorialããã£ã¦å¤§å¤é¢ç½ãã£ãã§ãã Redisãµã¼ãã¼ãèµ·åãã¦ã¿ãã redis-serv
node.jsã§ä½ã楽ããäºãã§ããªãããªãã¨æ¢ãã¦ãã¦ããã£ããã¨ãã¯ãããããã ããtwitterã®streaming apiãµã³ãã«ã¯ããè¦ãããã®ã§ãä½ããã以å¤ã®ãã®ã¯ãªããã¨æã£ã¦è¦ã¤ãã¾ããã aliasaria/scrumblr · GitHub æ¦è¦ã¯ããã¡ãã«é常ã«ããã¾ã¨ã¾ã£ã¦ãã¾ãã è¦ã¯ããã¼ãã®ä¸ã«ãã¹ãã»ã¤ãã風ã®ã¡ã¢ãè²¼ä»ãã¦ãåããã¦ã»ã»ã»ã¨ãããã¨ãå ±æã§ãããããªãé¢ç½ããã®ã§ãã ããããè¨äºãããã¾ãããWebä¸ã§ä¼¼ããã¨ãã§ããããããªããªãã¨æã£ã¦ãã¾ãã ãããããªãé¢ç½ãã§ãã èªåãæãscrumblrã®ããã¨ããã¨ãã¦ã¯ã å°å ¥ãå²ã¨ç°¡åãèªåã®å ´åãCentOSã¨Ubuntuã§å°å ¥ãã¦ã¿ã¾ããããã©ã¡ããé常ã«ç°¡åã§ããã Websocketã®ãªã¢ã«ã¿ã¤ã éä¿¡ã®å¨åãããåããã ã®ï¼ç¹ã§ã¯ãªãã§ãããããåç´ãªãã£ããã ã£ããããã
ããã«ã¡ã¯ãä»åã¯æ¨ä»æµè¡ã®ãã¼ã»ããªã¥ã¼ã¹ãã¢Redisã触ã£ã¦ã¿ãã®ã§ãã®è¨é²ã§ãã Redisã¯Cè¨èªã§å®è£ ããããã¼ããªã¥ã¼ã¹ãã¢ã®ä¸ç¨®ã§ãããåç´ã«ãã¼ããªã¥ã¼ã¹ãã¢ã¨è¡¨ç¾ããã®ã«æµæãããã»ã©å¤æ©è½ã§ããããããããã®æ©è½ãããã«ãçãæã«æãå±ãã¨ããããããã¨å©ããæ©è½ãè±å¯ã«æãã¦ãã¾ãã æ¦è¦ ç°¡åã«è¡¨ç¾ããã¨Redisã¯å ¨ã¦ã®ãã¼ã¿ãã¡ã¢ãªä¸ã«èªã¿è¾¼ãã§ãããä¸å®æéããã«ãã£ã¹ã¯ã«ãã¼ã¿ãä¿åããã¿ã¤ãã®ãã¼ããªã¥ã¼ã¹ãã¢ã®ããã§ããã©ã®ãããªã¿ã¤ãã³ã°ã§ãã£ã¹ã¯ã«æ¸ãè¾¼ããã¯è¨å®ã«ãã£ã¦ããªãæè»ã«è¡ããããã§ãã ã¾ãããã¼ã¿ãã¡ã¢ãªä¸ã«å ¨ã¦èªã¿è¾¼ãã®ãããã©ã«ãã®åä½ã§ãããã¡ã¢ãªã足ããªããªãã¨å¤ã¯ãã£ã¹ã¯ããèªã¿ããã¼ã¯ã¡ã¢ãªä¸ã«ç½®ãã¦ãããªã©ç¶æ³ã«å¿ããåä½ããã¦ãããããã§ããå¾ã£ã¦å¤§éã®ãã¼ã¿ãå¢å ãç¶ãããã¼ã¿ã®ä¿åé åã¨ãã¦ã使ç¨åºæ¥ããã¨æãã¾
翻訳ã«ã¤ãã¦Â¶ ãã®ããã¥ã¡ã³ãã¯ãRedisã®Wiki(http://code.google.com/p/redis/wiki/)ã®å 容ãåèã«ããªãããæ§æãªã©ã¯Sphinxã«åããã¤ã¤ç¿»è¨³ãã¦ãã¾ããã¾ããå¿ è¦ã«å¿ãã¦ãé å¸ç©ã®ä¸ã®ãã¡ã¤ã«ãªã©ãå¼ç¨ããªãã訳ãã¦ãã¾ãã
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}