roc230 / spymemcached

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

CASMutator removes expiry on mutated items #212

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What version of the product are you using? 2.7.3 

On what operating system? Debian

Tell me more...

CASMutator removes the expiry of any item it mutates in the cache.  This is 
because of it uses this call on line 107:

     if(client.cas(key, casval.getCas(), rv, transcoder)

instead of this call:

     if(client.cas(key, casval.getCas(), exp, rv, transcoder)

Since client is of type MemcachedClientIF, it looks as though the interface 
class would need updated to include this synchronous version of cas, too (the 
implementation, MemcachedClient, already has this method, but the interface 
doesn't specify it).

It's possible that Issue #184 might be good to tackle in conjunction with this, 
as we'll need to have an expiry to use, and may not wish to use the initial 
expiry.

Original issue reported on code.google.com by ShawnBro...@gmail.com on 20 Oct 2011 at 6:06

GoogleCodeExporter commented 9 years ago

Original comment by mikewie...@gmail.com on 24 Oct 2011 at 10:28

GoogleCodeExporter commented 9 years ago
This should be fixed in Spy 2.8

http://www.couchbase.com/issues/browse/SPY-69

Original comment by mikewie...@gmail.com on 28 Jan 2012 at 8:08

GoogleCodeExporter commented 9 years ago

Original comment by mikewie...@gmail.com on 28 Jan 2012 at 8:08