root/branches/append/server/items.h

Revision 590, 0.9 kB (checked in by sgrimm, 2 years ago)

Fix the "stats items" command; the powers-of-N chunk size change broke it

Line 
1/* See items.c */
2void item_init(void);
3/*@null@*/
4item *do_item_alloc(char *key, const size_t nkey, const int flags, const rel_time_t exptime, const int nbytes);
5void item_free(item *it);
6bool item_size_ok(const size_t nkey, const int flags, const int nbytes);
7
8int  do_item_link(item *it);     /* may fail if transgresses limits */
9void do_item_unlink(item *it);
10void do_item_remove(item *it);
11void do_item_update(item *it);   /* update LRU time to current and reposition */
12int  do_item_replace(item *it, item *new_it);
13
14/*@null@*/
15char *do_item_cachedump(const unsigned int slabs_clsid, const unsigned int limit, unsigned int *bytes);
16char *do_item_stats(int *bytes);
17
18/*@null@*/
19char *do_item_stats_sizes(int *bytes);
20void do_item_flush_expired(void);
21item *item_get(const char *key, const size_t nkey);
22
23item *do_item_get_notedeleted(const char *key, const size_t nkey, bool *delete_locked);
24item *do_item_get_nocheck(const char *key, const size_t nkey);
Note: See TracBrowser for help on using the browser.