diff options
author | Paul Lindner <plindner@hi5.com> | 2007-03-06 16:28:53 +0000 |
---|---|---|
committer | Paul Lindner <plindner@hi5.com> | 2007-03-06 16:28:53 +0000 |
commit | 77dde9f9ce17fcb0ba9fef7123c7f9d9cd0da71b (patch) | |
tree | aa2f33e7c4257cabd54b86ce2fc5a9f138f1f1c6 /items.h | |
parent | 2b551b0651d7f892353d2a2f53c5fcc618f32592 (diff) | |
download | memcached-77dde9f9ce17fcb0ba9fef7123c7f9d9cd0da71b.tar.gz |
multiple cleanups/refactoring, see ChangeLog
git-svn-id: http://code.sixapart.com/svn/memcached/trunk/server@468 b0b603af-a30f-0410-a34e-baf09ae79d0b
Diffstat (limited to 'items.h')
-rw-r--r-- | items.h | 20 |
1 files changed, 20 insertions, 0 deletions
@@ -0,0 +1,20 @@ +/* See items.c */ +void item_init(void); +/*@null@*/ +item *item_alloc(char *key, const size_t nkey, const int flags, const rel_time_t exptime, const int nbytes); +void item_free(item *it); +bool item_size_ok(char *key, const size_t nkey, const int flags, const int nbytes); + +int item_link(item *it); /* may fail if transgresses limits */ +void item_unlink(item *it); +void item_remove(item *it); +void item_update(item *it); /* update LRU time to current and reposition */ +int item_replace(item *it, item *new_it); + +/*@null@*/ +char *item_cachedump(const unsigned int slabs_clsid, const unsigned int limit, unsigned int *bytes); +void item_stats(char *buffer, const int buflen); + +/*@null@*/ +char *item_stats_sizes(int *bytes); +void item_flush_expired(void); |