items.h File Reference

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void item_init (void)
uint64_t get_cas_id (void)
itemdo_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 (const size_t nkey, const int flags, const int nbytes)
 Returns true if an item will fit in the cache (its size does not exceed the maximum for a cache entry.
int do_item_link (item *it)
void do_item_unlink (item *it)
 may fail if transgresses limits
void do_item_remove (item *it)
void do_item_update (item *it)
int do_item_replace (item *it, item *new_it)
 update LRU time to current and reposition
char * do_item_cachedump (const unsigned int slabs_clsid, const unsigned int limit, unsigned int *bytes)
void do_item_stats (ADD_STAT add_stats, void *c)
void do_item_stats_sizes (ADD_STAT add_stats, void *c)
 dumps out a list of objects of each size, with granularity of 32 bytes
void do_item_flush_expired (void)
itemdo_item_get (const char *key, const size_t nkey)
 wrapper around assoc_find which does the lazy expiration logic
itemdo_item_get_nocheck (const char *key, const size_t nkey)
 returns an item whether or not it's expired.
void item_stats_reset (void)

Variables

pthread_mutex_t cache_lock


Function Documentation

item* do_item_alloc ( char *  key,
const size_t  nkey,
const int  flags,
const rel_time_t  exptime,
const int  nbytes 
)

Here is the call graph for this function:

Here is the caller graph for this function:

char* do_item_cachedump ( const unsigned int  slabs_clsid,
const unsigned int  limit,
unsigned int *  bytes 
)

Here is the caller graph for this function:

void do_item_flush_expired ( void   ) 

Here is the call graph for this function:

Here is the caller graph for this function:

item* do_item_get ( const char *  key,
const size_t  nkey 
)

wrapper around assoc_find which does the lazy expiration logic

Here is the call graph for this function:

Here is the caller graph for this function:

item* do_item_get_nocheck ( const char *  key,
const size_t  nkey 
)

returns an item whether or not it's expired.

Here is the call graph for this function:

int do_item_link ( item it  ) 

Here is the call graph for this function:

Here is the caller graph for this function:

void do_item_remove ( item it  ) 

Here is the call graph for this function:

Here is the caller graph for this function:

int do_item_replace ( item it,
item new_it 
)

update LRU time to current and reposition

Here is the call graph for this function:

Here is the caller graph for this function:

void do_item_stats ( ADD_STAT  add_stats,
void *  c 
)

Here is the caller graph for this function:

void do_item_stats_sizes ( ADD_STAT  add_stats,
void *  c 
)

dumps out a list of objects of each size, with granularity of 32 bytes

Here is the caller graph for this function:

void do_item_unlink ( item it  ) 

may fail if transgresses limits

Here is the call graph for this function:

Here is the caller graph for this function:

void do_item_update ( item it  ) 

Here is the caller graph for this function:

uint64_t get_cas_id ( void   ) 

Here is the caller graph for this function:

void item_free ( item it  ) 

Here is the call graph for this function:

Here is the caller graph for this function:

void item_init ( void   ) 

Here is the caller graph for this function:

bool item_size_ok ( const size_t  nkey,
const int  flags,
const int  nbytes 
)

Returns true if an item will fit in the cache (its size does not exceed the maximum for a cache entry.

)

Here is the call graph for this function:

void item_stats_reset ( void   ) 


Variable Documentation

pthread_mutex_t cache_lock


Generated on Fri Apr 17 16:28:16 2009 for memcached by  doxygen 1.5.8