mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-26 23:39:11 -05:00
Upgrade to pylibmc 1.2.1!
cache_lookups is deprecated and verify_key changed names to verify_keys.
This commit is contained in:
@@ -98,10 +98,8 @@ class CMemcache(CacheUtils):
|
||||
client = pylibmc.Client(servers, binary=True)
|
||||
behaviors = {
|
||||
'no_block': no_block, # use async I/O
|
||||
'cache_lookups': True, # cache DNS lookups
|
||||
'tcp_nodelay': True, # no nagle
|
||||
'_noreply': int(noreply),
|
||||
'verify_key': int(debug), # spend the CPU to verify keys
|
||||
'ketama': True, # consistent hashing
|
||||
}
|
||||
|
||||
|
||||
@@ -90,8 +90,9 @@ setup(
|
||||
"PIL",
|
||||
"pycaptcha",
|
||||
"amqplib",
|
||||
"pylibmc==1.1.1"
|
||||
"pylibmc==1.2.1-dev"
|
||||
],
|
||||
dependency_links = ['https://github.com/downloads/reddit/pylibmc/pylibmc-1.2.1-dev.tar.gz#egg=pylibmc-1.2.1-dev',],
|
||||
packages=find_packages(exclude=['ez_setup']),
|
||||
include_package_data=True,
|
||||
test_suite = 'nose.collector',
|
||||
|
||||
Reference in New Issue
Block a user