Hi All,
Ryan Thank you for the update, you are right and I have taken it on board
Kind Regarrds
Gurdipe
Kind Regards
Gurdipe
Email: gurd...@veeqo.com
Mobile: 07879682511
Home: 01656749236
Skype: gurdipe_veeqo
Linkedin: gurdipe
Dropbox: gurd...@veepo.com
On 16 January 2015 at 15:20, Ryan
Hi All,
Thank you for the updates.
I have been doing a lot of reading on memcached and I am trying to find a
way I can find out what is the oldest key.
Is there a way I can do this?
Kind Regards
Gurdipe
Kind Regards
Gurdipe
Email: gurd...@veeqo.com
Mobile: 07879682511
Home: 01656749236
As was answered, there's no built-in way to determine when a key was set.
Furthermore, memcached itself doesn't track when the oldest key changes.
The only way to approximate the behavior you want is to store the set times
in each value, get all possible keys, and then do the comparison yourself.
I don’t think there’s a way to figure out when a given key was written. If
you really needed that, you could write it as part of the data you stored,
or use the ‘flags’ field to store a unixtime timestamp.
You can get the age of the oldest key, on a per-slab basis, with ‘stats
items’ and looking
The only data stored are when the item expires, and when the last time it
was accessed.
The age field (and evicted_time) is how long ago the oldest item in the
LRU was accessed. You can roughly tell how wide your LRU is with that.
On Mon, 12 Jan 2015, 'Jay Grizzard' via memcached wrote:
I
Ack! You are, of course, right. I looked at the protocol documentation and
completely failed to engage my brain enough to realize that the protocol
documentation is… imprecise. Or at least unclear. Or at least lacks an
appropriate definition of ‘age’.
My bad!
-j
On Mon, Jan 12, 2015 at 12:14
Hi All,
I am new to memcache and need to know is there a where to work out when
the key was written to memcache and calculate the age of the oldest key on
our memcache?
Kind Regards
Gurdipe
--
---
You received this message because you are subscribed to the Google Groups
memcached group.