Skip to content

Commit 72082f8

Browse files
author
Sean Reifschneider
committed
Changing check_key to check_keys.
1 parent 07498a0 commit 72082f8

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

ChangeLog

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
* Client() now takes a "check_key" option, which defaults to True.
1+
Mon, 06 May 2013 07:20:21 -0600 Sean Reifschneider <jafo@tummy.com>
2+
3+
* 1.49 release.
4+
5+
* Client() now takes a "check_keys" option, which defaults to True.
26
If False, it disables the checking of keys to ensure they have
37
acceptable size and are composed of non-control characters.
48
Suggested by Ben Hoyt.

memcache.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ def __init__(self, servers, debug=0, pickleProtocol=0,
163163
server_max_key_length=SERVER_MAX_KEY_LENGTH,
164164
server_max_value_length=SERVER_MAX_VALUE_LENGTH,
165165
dead_retry=_DEAD_RETRY, socket_timeout=_SOCKET_TIMEOUT,
166-
cache_cas = False, flush_on_reconnect=0, check_key=True):
166+
cache_cas = False, flush_on_reconnect=0, check_keys=True):
167167
"""
168168
Create a new Client object with the given list of servers.
169169
@@ -196,7 +196,7 @@ def __init__(self, servers, debug=0, pickleProtocol=0,
196196
back, those keys will map to it again. If it still has its data, get()s
197197
can read stale data that was overwritten on another server. This flag
198198
is off by default for backwards compatibility.
199-
@param check_key: (default True) If True, the key is checked to
199+
@param check_keys: (default True) If True, the key is checked to
200200
ensure it is the correct length and composed of the right characters.
201201
"""
202202
local.__init__(self)
@@ -208,7 +208,7 @@ def __init__(self, servers, debug=0, pickleProtocol=0,
208208
self.stats = {}
209209
self.cache_cas = cache_cas
210210
self.reset_cas()
211-
self.do_check_key = check_key
211+
self.do_check_key = check_keys
212212

213213
# Allow users to modify pickling/unpickling behavior
214214
self.pickleProtocol = pickleProtocol

0 commit comments

Comments
 (0)