Åä³×À̵µ - ·¹µð ½º

Tornado À¥ ¼­¹ö IO ·çÇÁ¿¡¼­ ÀÛµ¿ÇÏ´Â ºñµ¿±â Redis Ŭ¶óÀ̾ðÆ®.
Áö±Ý ´Ù¿î·Îµå

Åä³×À̵µ - ·¹µð ½º ¼øÀ§ ¹× ¿ä¾à

±¤°í

  • Rating:
  • ƯÇã:
  • WTFPL
  • °¡°Ý:
  • FREE
  • °Ô½ÃÀÚ À̸§:
  • Vlad Glushchuk
  • °Ô½ÃÀÚ À¥»çÀÌÆ®:
  • http://github.com/leporo/

Åä³×À̵µ - ·¹µð ½º ű×


Åä³×À̵µ - ·¹µð ½º ¼³¸í

Tornado-Redis´Â Åä³×À̵µ IO ·çÇÁ¿¡¼­ ÀÛµ¿ÇÏ´Â ºñµ¿±â Redis Ŭ¶óÀ̾ðÆ®ÀÔ´Ï´Ù. ÀÌ°ÍÀº ±âº»ÀûÀ¸·Î Brkva Redis Ŭ¶óÀ̾ðÆ®ÀÇ Æ÷Å©ÀÔ´Ï´Ù. Tornado.SageImport TornadoRoredImport Tornado.Webimport Tornado.gen ... C = tornadoredis.client () c.connect () ... class mainHandler (tornado.web.requestHandler) : @ tornado.web.asynchronous @ tornado.gen.engine def get (self) : foo = yorp.gen.task ( c.get, 'foo') bar = yornado.gen.task (c.get, 'bar') zar = yornado.gen.task (c.get, 'zar') self.set_header ( 'content-type) ','text / html ') self.render ( "template.html", title = "simple demo", foo = foo, bar = bar, zar = zar) localhostÀÇ redis-server¿¡¼­ ÆÁ : 6379. ´ÙÀ½ ¸í·ÉÀ» »ç¿ëÇÏ¿© Å×½ºÆ®¸¦ ½ÇÇàÇϽʽÿÀ. python -m tornado.testing tornadoredis.testsreconnect Å×½ºÆ®°¡ ±âº»ÀûÀ¸·Î »ç¿ë ÁßÁöµÇ¾ú½À´Ï´Ù. Á¦Ç°ÀÇ È¨ÆäÀÌÁö


Åä³×À̵µ - ·¹µð ½º °ü·Ã ¼ÒÇÁÆ®¿þ¾î