Jdesk / memcached

Automatically exported from code.google.com/p/memcached
0 stars 0 forks source link

Feature: commands for getting/setting multiple items #180

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Is it possible to implement this 2 commands?

1. Command that takes one or more keys and returns CAS identifiers (a unique 
64bit number) with the all found items.
2. Command that takes one or more keys, CAS identifiers and values.

If it's already implemented then let me know.

Original issue reported on code.google.com by Alexander.Petrichkovich@gmail.com on 23 Dec 2010 at 8:20

GoogleCodeExporter commented 9 years ago
For 2nd command it'll be good to delete item if CAS is wrong.

3. Command that takes one or more keys, values, expiration and stores items if 
they not exist or deletes them if they exist.

Original comment by Alexander.Petrichkovich@gmail.com on 23 Dec 2010 at 8:38

GoogleCodeExporter commented 9 years ago
In the ascii protocol, get and gets both will return multiple items.

In the binary protocol, you can pipeline any arbitrary mix of commands and have 
proper handling of sparse results in the client.

Your third command doesn't make much sense.  Semantically, I can't think of a 
use case that won't just cause confusion in an application.  If you have the 
wrong CAS, it's because the item has been updated by something else.  
store-or-delete would be very confusing semantics.

Original comment by dsalli...@gmail.com on 23 Dec 2010 at 8:55

GoogleCodeExporter commented 9 years ago
Sorry, 2nd command should strore multiple items.

Original comment by Alexander.Petrichkovich@gmail.com on 23 Dec 2010 at 11:55