diff options
Diffstat (limited to 'items.h')
-rw-r--r-- | items.h | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -46,6 +46,14 @@ void item_stats_sizes_add(item *it); void item_stats_sizes_remove(item *it); bool item_stats_sizes_status(void); +/* stats getter for slab automover */ +typedef struct { + int64_t evicted; + int64_t outofmemory; + uint32_t age; +} item_stats_automove; +void fill_item_stats_automove(item_stats_automove *am); + item *do_item_get(const char *key, const size_t nkey, const uint32_t hv, conn *c, const bool do_update); item *do_item_touch(const char *key, const size_t nkey, uint32_t exptime, const uint32_t hv, conn *c); void item_stats_reset(void); |