|
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 */ |
|---|
| 2 | void item_init(void); |
|---|
| 3 | /*@null@*/ |
|---|
| 4 | item *do_item_alloc(char *key, const size_t nkey, const int flags, const rel_time_t exptime, const int nbytes); |
|---|
| 5 | void item_free(item *it); |
|---|
| 6 | bool item_size_ok(const size_t nkey, const int flags, const int nbytes); |
|---|
| 7 | |
|---|
| 8 | int do_item_link(item *it); /* may fail if transgresses limits */ |
|---|
| 9 | void do_item_unlink(item *it); |
|---|
| 10 | void do_item_remove(item *it); |
|---|
| 11 | void do_item_update(item *it); /* update LRU time to current and reposition */ |
|---|
| 12 | int do_item_replace(item *it, item *new_it); |
|---|
| 13 | |
|---|
| 14 | /*@null@*/ |
|---|
| 15 | char *do_item_cachedump(const unsigned int slabs_clsid, const unsigned int limit, unsigned int *bytes); |
|---|
| 16 | char *do_item_stats(int *bytes); |
|---|
| 17 | |
|---|
| 18 | /*@null@*/ |
|---|
| 19 | char *do_item_stats_sizes(int *bytes); |
|---|
| 20 | void do_item_flush_expired(void); |
|---|
| 21 | item *item_get(const char *key, const size_t nkey); |
|---|
| 22 | |
|---|
| 23 | item *do_item_get_notedeleted(const char *key, const size_t nkey, bool *delete_locked); |
|---|
| 24 | item *do_item_get_nocheck(const char *key, const size_t nkey); |
|---|