summaryrefslogtreecommitdiff
path: root/items.h
diff options
context:
space:
mode:
authordormando <dormando@rydia.net>2014-04-14 16:54:10 -0700
committerdormando <dormando@rydia.net>2014-04-17 00:43:17 -0700
commit0d1f505c1590db5e874df8254908270dbe7fd563 (patch)
tree1cd3ea7ab2e2e36766aba6acef2f5d2f787b0263 /items.h
parent05ca809cc4bda62f0c778be29bfdf565fa39142d (diff)
downloadmemcached-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.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/items.h b/items.h
index 4c75119..99e1d1e 100644
--- a/items.h
+++ b/items.h
@@ -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);