Lines Matching refs:key
67 static PREFIX_STATS *stats_prefix_find(const char *key, const size_t nkey) { in stats_prefix_find() argument
73 assert(key != NULL); in stats_prefix_find()
75 for (length = 0; length < nkey && key[length] != '\0'; length++) { in stats_prefix_find()
76 if (key[length] == settings.prefix_delimiter) { in stats_prefix_find()
86 hashval = hash(key, length) % PREFIX_HASH_SIZE; in stats_prefix_find()
89 if (strncmp(pfs->prefix, key, length) == 0) in stats_prefix_find()
106 strncpy(pfs->prefix, key, length); in stats_prefix_find()
122 void stats_prefix_record_get(const char *key, const size_t nkey, const bool is_hit) { in stats_prefix_record_get() argument
126 pfs = stats_prefix_find(key, nkey); in stats_prefix_record_get()
139 void stats_prefix_record_delete(const char *key, const size_t nkey) { in stats_prefix_record_delete() argument
143 pfs = stats_prefix_find(key, nkey); in stats_prefix_record_delete()
153 void stats_prefix_record_set(const char *key, const size_t nkey) { in stats_prefix_record_set() argument
157 pfs = stats_prefix_find(key, nkey); in stats_prefix_record_set()