Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to set flags param by custom ? #123

Open
iyaozhen opened this issue Jun 15, 2017 · 0 comments
Open

How to set flags param by custom ? #123

iyaozhen opened this issue Jun 15, 2017 · 0 comments

Comments

@iyaozhen
Copy link

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.

image

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant