• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.9.5/postfix-252/postfix/src/util/

Lines Matching defs:cache_key

17 /*	const char *dict_cache_lookup(cache, cache_key)
19 /* const char *cache_key;
21 /* int dict_cache_update(cache, cache_key, cache_val)
23 /* const char *cache_key;
26 /* int dict_cache_delete(cache, cache_key)
28 /* const char *cache_key;
30 /* int dict_cache_sequence(cache, first_next, cache_key, cache_val)
33 /* const char **cache_key;
40 /* typedef int (*DICT_CACHE_VALIDATOR_FN) (const char *cache_key,
130 /* .IP cache_key
247 #define DC_MATCH_SAVED_CURRENT_KEY(cp, cache_key) \
248 ((cp)->saved_curr_key && strcmp((cp)->saved_curr_key, (cache_key)) == 0)
264 const char *dict_cache_lookup(DICT_CACHE *cp, const char *cache_key)
275 && DC_MATCH_SAVED_CURRENT_KEY(cp, cache_key)) {
278 myname, cache_key);
281 cache_val = dict_get(db, cache_key);
285 cp->name, cache_key);
287 msg_info("%s: key=%s value=%s", myname, cache_key,
296 int dict_cache_update(DICT_CACHE *cp, const char *cache_key,
307 && DC_MATCH_SAVED_CURRENT_KEY(cp, cache_key)) {
309 msg_info("%s: cancel delete-behind for key=%s", myname, cache_key);
313 msg_info("%s: key=%s value=%s", myname, cache_key, cache_val);
314 put_res = dict_put(db, cache_key, cache_val);
317 "%s: could not update entry for %s", cp->name, cache_key);
323 int dict_cache_delete(DICT_CACHE *cp, const char *cache_key)
334 if (DC_MATCH_SAVED_CURRENT_KEY(cp, cache_key)) {
338 myname, cache_key);
341 del_res = dict_del(db, cache_key);
344 "%s: could not delete entry for %s", cp->name, cache_key);
346 msg_info("%s: key=%s (%s)", myname, cache_key,
356 const char **cache_key,
387 * Save the current cache_key and cache_val before they are clobbered by
391 * We also use the saved cache_key to protect the current entry against
429 *cache_key = (cp)->saved_curr_key;
462 const char *cache_key;
494 if (dict_cache_sequence(cp, first_next, &cache_key, &cache_val) == 0) {
495 if (cp->exp_validator(cache_key, cache_val, cp->exp_context) == 0) {
500 myname, cp->name, cache_key);
505 myname, cp->name, cache_key);