【发布时间】:2015-07-17 18:11:25
【问题描述】:
我已经使用 -I 3m 选项运行 memcached。
但是我需要告诉 pylibmc 大小的变化吗?
我试过了:
self.cache = memcache.Client(servers, binary=True,
server_max_value_length=(1024 * 1024 * 2),
behaviors={"tcp_nodelay": True, "ketama": True, "no_block": True})
但我得到了这个:
File "utils.py", line 63, in init
behaviors={"tcp_nodelay": True, "ketama": True, "no_block": True})
TypeError: init() got an unexpected keyword argument 'server_max_value_length'
【问题讨论】:
标签: python memcached libmemcached pylibmc