时间:2021-07-01 10:21:17 帮助过:58人阅读
在上次(http://wangxu.me/blog/p/758)之后,再次改动了 tornado-memcache 模块,commit 信息如下: Add gets method and simplify connection estabilish - simplify connection estabilish procedure, as tornado.iostream permit write before connection
在上次(http://wangxu.me/blog/p/758)之后,再次改动了 tornado-memcache 模块,commit 信息如下:
Add gets method and simplify connection estabilish
- simplify connection estabilish procedure, as tornado.iostream permit write before connection estabilished, I removed the callback and connection timeout procedure in _get_server() - add `gets(self, keys, callback, failcallback)` method, receive a list of keys as parameter and return a dictionary of results result = {key1:value1, key2:value2...}, only return the got keys from memcached - some debug info, might be cleanup later Signed-off-by: Wang Xu
简单地说就是两件事情:
里面还插入了好多调试的时候的 debug 信息,差不多都注掉了,回头都稳定了再清理一下。
嗯,代码都在 github 了:https://github.com/gnawux/tornado-memcache
原文地址:再次改动了 tornado-memcache, 感谢原作者分享。