Lines Matching refs:cache

54 #include <dns/cache.h>
165 dns_db_t *cache;
1335 dns_cache_t *cache = NULL;
1397 * Create additional cache for this view and zones under the view
1513 * we can reuse/share an existing cache.
1534 result = ns_config_get(maps, "zero-no-soa-ttl-cache", &obj);
1549 result = ns_config_get(maps, "max-cache-ttl", &obj);
1561 * Configure the view's cache. Try to reuse an existing
1562 * cache if possible, otherwise create a new cache.
1567 * XXX Determining when it is safe to reuse a cache is tricky.
1570 * some of the configuration parameters that could invalidate the cache,
1573 * configuration may invalidate the cache. At the moment, it's the
1584 INSIST(pview->cache != NULL);
1587 "reusing existing cache");
1589 dns_cache_attach(pview->cache, &cache);
1593 "cache cannot be reused for view %s "
1601 if (cache == NULL) {
1603 * Create a cache.
1606 * cache, for the main cache memory and the heap
1610 isc_mem_setname(cmctx, "cache", NULL);
1615 NULL, "rbt", 0, NULL, &cache));
1619 dns_view_setcache(view, cache);
1622 * cache-file cannot be inherited if views are present, but this
1626 result = ns_config_get(maps, "cache-file", &obj);
1628 CHECK(dns_cache_setfilename(cache, cfg_obj_asstring(obj)));
1630 CHECK(dns_cache_load(cache));
1636 dns_cache_setcleaninginterval(cache, cfg_obj_asuint32(obj) * 60);
1639 result = ns_config_get(maps, "max-cache-size", &obj);
1650 "'max-cache-size "
1658 dns_cache_setcachesize(cache, max_cache_size);
1660 dns_cache_detach(&cache);
1695 * Set the ADB cache size to 1/8th of the max-cache-size.
1925 result = ns_config_get(maps, "additional-from-cache", &obj);
1930 "'additional-from-cache no' is only supported "
1936 * Set "allow-query-cache", "allow-query-cache-on",
1940 CHECK(configure_view_acl(vconfig, config, "allow-query-cache",
1942 CHECK(configure_view_acl(vconfig, config, "allow-query-cache-on",
1946 "allow-query-cache-on", actx,
1958 * "allow-query-cache" inherits from "allow-recursion" if set,
1960 * "allow-recursion" inherits from "allow-query-cache" if set,
1974 * "allow-query-cache" acls.
1989 "allow-query-cache", actx,
2325 if (cache != NULL)
2326 dns_cache_detach(&cache);
5112 if (dctx->cache != NULL)
5113 dns_db_detach(&dctx->cache);
5143 if (dctx->zone == NULL && dctx->cache == NULL && dctx->dumpcache) {
5145 /* start cache dump */
5147 dns_db_attach(dctx->view->view->cachedb, &dctx->cache);
5148 if (dctx->cache != NULL) {
5153 dctx->cache, NULL,
5167 if (dctx->cache != NULL) {
5171 dns_db_detach(&dctx->cache);
5259 dctx->cache = NULL;
5262 dctx->cache = NULL;
5280 } else if (ptr != NULL && strcmp(ptr, "-cache") == 0) {
5456 "flushing cache in view '%s' failed: %s",
5464 "flushing cache in view '%s' succeeded",
5475 "flushing cache in view '%s' failed: "
5533 "flushing name '%s' in cache view '%s' "
5542 "flushing name '%s' in cache view '%s' "
5547 "flushing name '%s' in all cache views "
5554 "flushing name '%s' in cache view '%s' "