can anybody tell me (or point to some documentation that documents) how memcached counters work? Specifically: how do they expire? I'm using the java spymemcached client.
The method
net.spy.memcached.MemcachedClient.incr(String key, int by, long def, int exp)
takes a parameter "exp" described as "the expiration of this object"
Does that mean each individual call to the counter has its own expiry time? Or does calling incr bump the expiry time for the key?
Also, shouldn't there be a method to get a counter value? Or should I call incr with an increment of 0?
Copyright Notice:Content Author:「PapaFreud」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/12050407/memcached-spymemcached-counters-and-expiry-time