I’m currently running tests against our Couchbase Server 3.0.1 using a spymemcached(2.11.7) Java client that’s packaged with Simple Spring Memcached 3.6.0 library. I’m able to store, retrieve and delete key/values stored in the memcached buckets, however in our live roll out we would expect the expirations set on the keys to automatically expire rather than being explicitly deleted. I’m currently setting an expiry of 300ms through Simple Spring Memcached annotation on a key/value storing method like this for instance,
@UpdateSingleCache(namespace = someNameSpace, expiration = 300)
public void storeTheKey(@ParameterValueKeyProvider String thisKey, @ParameterDataUpdateContent SomeResult storedResult)
//log some stuff
So this method does store “thisKey” and “storedResult”, however after the expired time I’m still seeing the key/value in the memcached bucket of the server node.
Anybody familiar with using Simple Spring Memcached via Spymemcached with Couchbase out there? Or perhaps there’s a default expiry that could be set explicitly on the Couchbase Server to handle this?