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 can i implement a CAS and GETS use this repo? #207

Open
Milittle opened this issue Jul 31, 2021 · 6 comments
Open

How can i implement a CAS and GETS use this repo? #207

Milittle opened this issue Jul 31, 2021 · 6 comments
Assignees

Comments

@Milittle
Copy link

Milittle commented Jul 31, 2021

How can i implement a CAS and GETS use this repo?
Thx

@Milittle Milittle changed the title How i can implement a CAS and GETS use this repo? How can i implement a CAS and GETS use this repo? Jul 31, 2021
@zzzeek
Copy link
Member

zzzeek commented Jul 31, 2021

Hi there -

I haven't googled to see what these acronyms are for, please provide a little bit of human readable detail for what it is you're requesting, thanks

@zzzeek zzzeek self-assigned this Jul 31, 2021
@zzzeek
Copy link
Member

zzzeek commented Jul 31, 2021

internal google just spit out "compare and swap" as I was staring into space. I usually have seen this for database values. Seems like you might need some creativity to get dogpile to do this as it is oriented around values that are safe to use when stale.

@Milittle
Copy link
Author

Milittle commented Aug 1, 2021

I mean the memcached have cas and gets command to support the "compare and swap". How can i use this repo to call the feature. Thx.

@zzzeek
Copy link
Member

zzzeek commented Aug 1, 2021

I don't really know memcached protocol, can you provide an example using one of the memcached client libraries directly ?

@zzzeek
Copy link
Member

zzzeek commented Aug 3, 2021

Dogpile doesn't expose that method as it is not part of the general idea of what dogpile provides. As this is a memcached-specific call you are better off calling into the python-memcached library directly.

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

2 participants