python-memcached
python-memcached copied to clipboard
How to set flags param by custom ?
memcache set:
set <key> <flags> <exptime> <bytes>
but python-memcached set:
def set(self, key, val, time=0, min_compress_len=0, noreply=False)
when val is str
flags will be set 0
by _val_to_store_info
function.
But other system set flags is 1
, I can't exchange data with others.
from https://github.com/memcached/memcached/blob/master/doc/protocol.txt
is an arbitrary 16-bit unsigned integer (written out in decimal) that the server stores along with the data and sends back when the item is retrieved. Clients may use this as a bit field to store data-specific information; this field is opaque to the server.