🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

python-memcached

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

python-memcached - pypi Package Compare versions

Comparing version
1.52
to
1.53
+39
-25
memcache.py

@@ -85,3 +85,3 @@ #!/usr/bin/env python

__author__ = "Sean Reifschneider <jafo-memcached@tummy.com>"
__version__ = "1.52"
__version__ = "1.53"
__copyright__ = "Copyright (C) 2003 Danga Interactive"

@@ -667,14 +667,19 @@ # http://en.wikipedia.org/wiki/Python_Software_Foundation_License

This method is recommended over regular L{set} as it lowers the number of
total packets flying around your network, reducing total latency, since
your app doesn't have to wait for each round-trip of L{set} before sending
the next one.
This method is recommended over regular L{set} as it lowers the
number of total packets flying around your network, reducing
total latency, since your app doesn't have to wait for each
round-trip of L{set} before sending the next one.
@param mapping: A dict of key/value pairs to set.
@param time: Tells memcached the time which this value should expire, either
as a delta number of seconds, or an absolute unix time-since-the-epoch
value. See the memcached protocol docs section "Storage Commands"
for more info on <exptime>. We default to 0 == cache forever.
@param key_prefix: Optional string to prepend to each key when sending to memcache. Allows you to efficiently stuff these keys into a pseudo-namespace in memcache:
>>> notset_keys = mc.set_multi({'key1' : 'val1', 'key2' : 'val2'}, key_prefix='subspace_')
@param time: Tells memcached the time which this value should
expire, either as a delta number of seconds, or an absolute
unix time-since-the-epoch value. See the memcached protocol
docs section "Storage Commands" for more info on <exptime>. We
default to 0 == cache forever.
@param key_prefix: Optional string to prepend to each key when
sending to memcache. Allows you to efficiently stuff these
keys into a pseudo-namespace in memcache:
>>> notset_keys = mc.set_multi(
... {'key1' : 'val1', 'key2' : 'val2'}, key_prefix='subspace_')
>>> len(notset_keys) == 0

@@ -685,13 +690,19 @@ True

Causes key 'subspace_key1' and 'subspace_key2' to be set. Useful in conjunction with a higher-level layer which applies namespaces to data in memcache.
In this case, the return result would be the list of notset original keys, prefix not applied.
Causes key 'subspace_key1' and 'subspace_key2' to be
set. Useful in conjunction with a higher-level layer which
applies namespaces to data in memcache. In this case, the
return result would be the list of notset original keys,
prefix not applied.
@param min_compress_len: The threshold length to kick in auto-compression
of the value using the zlib.compress() routine. If the value being cached is
a string, then the length of the string is measured, else if the value is an
object, then the length of the pickle result is measured. If the resulting
attempt at compression yeilds a larger string than the input, then it is
discarded. For backwards compatability, this parameter defaults to 0,
indicating don't ever try to compress.
@return: List of keys which failed to be stored [ memcache out of memory, etc. ].
@param min_compress_len: The threshold length to kick in
auto-compression of the value using the zlib.compress()
routine. If the value being cached is a string, then
the length of the string is measured, else if the value
is an object, then the length of the pickle result is
measured. If the resulting attempt at compression yeilds
a larger string than the input, then it is discarded. For
backwards compatability, this parameter defaults to 0,
indicating don't ever try to compress.
@return: List of keys which failed to be stored [ memcache out of
memory, etc. ].
@rtype: list

@@ -739,4 +750,3 @@

for key in keys:
line = server.readline()
if line == 'STORED':
if server.readline() == 'STORED':
continue

@@ -1167,3 +1177,7 @@ else:

buf = self.buffer
recv = self.socket.recv
if self.socket:
recv = self.socket.recv
else:
recv = lambda bufsize: ''
while True:

@@ -1176,3 +1190,3 @@ index = buf.find('\r\n')

# connection close, let's kill it and raise
self.close_socket()
self.mark_dead('connection closed in readline()')
if raise_exception:

@@ -1179,0 +1193,0 @@ raise _ConnectionDeadError()

Metadata-Version: 1.1
Name: python-memcached
Version: 1.52
Version: 1.53
Summary: Pure python memcached client

@@ -5,0 +5,0 @@ Home-page: http://www.tummy.com/Community/software/python-memcached/

Metadata-Version: 1.1
Name: python-memcached
Version: 1.52
Version: 1.53
Summary: Pure python memcached client

@@ -5,0 +5,0 @@ Home-page: http://www.tummy.com/Community/software/python-memcached/

Sorry, the diff of this file is not supported yet