diff options
author | dormando <dormando@rydia.net> | 2014-04-14 16:54:10 -0700 |
---|---|---|
committer | dormando <dormando@rydia.net> | 2014-04-17 00:43:17 -0700 |
commit | 0d1f505c1590db5e874df8254908270dbe7fd563 (patch) | |
tree | 1cd3ea7ab2e2e36766aba6acef2f5d2f787b0263 /items.h | |
parent | 05ca809cc4bda62f0c778be29bfdf565fa39142d (diff) | |
download | memcached-0d1f505c1590db5e874df8254908270dbe7fd563.tar.gz |
barebones LRU crawler proof of concept
so many things undone... TODO is inline in items.c.
this seems to work, and the locking should be correct. it is a background
thread so shouldn't cause significant latency. However it does quickly roll
through the entire LRU (and as of this PoC it just constantly runs), so there
will be cpu impact.
Diffstat (limited to 'items.h')
-rw-r--r-- | items.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -26,3 +26,6 @@ item *do_item_touch(const char *key, const size_t nkey, uint32_t exptime, const void item_stats_reset(void); extern pthread_mutex_t cache_lock; void item_stats_evictions(uint64_t *evicted); + +int start_item_crawler_thread(void); +int stop_item_crawler_thread(void); |