Mercurial > hg > memcached
comparison items.h @ 0:30782bb1fc04 MEMCACHED_1_2_3
memcached-1.2.3
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Sun, 23 Sep 2007 03:58:34 +0400 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:30782bb1fc04 |
---|---|
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 *item_cachedump(const unsigned int slabs_clsid, const unsigned int limit, unsigned int *bytes); | |
16 void item_stats(char *buffer, const int buflen); | |
17 | |
18 /*@null@*/ | |
19 char *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); |