Current section
Files
Jump to
Current section
Files
c_src/mcache_bucket.h
#ifndef MC_BUCKET_H_INCLUDED
#define MC_BUCKET_H_INCLUDED
mc_bucket_t* bucket_free(mc_bucket_t *bucket, mc_conf_t conf);
uint8_t bucket_is_empty(mc_bucket_t *bucket);
void bucket_age(mc_bucket_t *bucket, mc_conf_t conf);
mc_metric_t* bucket_find_metric(mc_bucket_t *bucket, mc_conf_t conf, uint64_t hash, uint16_t name_len, uint8_t *name);
mc_metric_t* bucket_find_metric_and_remove(mc_bucket_t *bucket, mc_conf_t conf, uint64_t hash, uint16_t name_len, uint8_t *name);
mc_metric_t* bucket_get_metric(mc_bucket_t *bucket, mc_conf_t conf, uint64_t hash, uint16_t name_len, uint8_t *name);
mc_metric_t* bucket_check_limit(mc_bucket_t *bucket, mc_conf_t conf, uint64_t max_alloc, uint64_t *tests);
void bucket_insert(mc_bucket_t *bucket, mc_conf_t conf, uint8_t *name, size_t name_len, uint64_t offset, uint64_t *value, size_t value_len);
mc_bucket_t* bucket_init(mc_conf_t config, size_t data_size, uint8_t *name, size_t name_len);
uint64_t bucket_count(mc_bucket_t *bucket);
uint64_t bucket_alloc(mc_bucket_t *bucket);
#endif // MC_BUCKET_H_INCLUDED