【问题标题】:pylibmc - how to support values greater than 1 MBpylibmc - 如何支持大于 1 MB 的值
【发布时间】: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


    【解决方案1】:

    据我所知,它似乎可以正常工作,而无需在 init 中包含“server_max_value_length”,所以我猜在 pylibmc 端没有什么特别的事情可做?

    【讨论】:

      猜你喜欢
      • 2017-08-31
      • 2012-03-26
      • 1970-01-01
      • 2018-08-27
      • 1970-01-01
      • 1970-01-01
      • 2021-06-15
      • 2019-04-08
      • 1970-01-01
      相关资源
      最近更新 更多