1*0fb34990SDag-Erling Smørgrav /* 2*0fb34990SDag-Erling Smørgrav * cachedb/redis.h - cachedb redis module 3*0fb34990SDag-Erling Smørgrav * 4*0fb34990SDag-Erling Smørgrav * Copyright (c) 2018, NLnet Labs. All rights reserved. 5*0fb34990SDag-Erling Smørgrav * 6*0fb34990SDag-Erling Smørgrav * This software is open source. 7*0fb34990SDag-Erling Smørgrav * 8*0fb34990SDag-Erling Smørgrav * Redistribution and use in source and binary forms, with or without 9*0fb34990SDag-Erling Smørgrav * modification, are permitted provided that the following conditions 10*0fb34990SDag-Erling Smørgrav * are met: 11*0fb34990SDag-Erling Smørgrav * 12*0fb34990SDag-Erling Smørgrav * Redistributions of source code must retain the above copyright notice, 13*0fb34990SDag-Erling Smørgrav * this list of conditions and the following disclaimer. 14*0fb34990SDag-Erling Smørgrav * 15*0fb34990SDag-Erling Smørgrav * Redistributions in binary form must reproduce the above copyright notice, 16*0fb34990SDag-Erling Smørgrav * this list of conditions and the following disclaimer in the documentation 17*0fb34990SDag-Erling Smørgrav * and/or other materials provided with the distribution. 18*0fb34990SDag-Erling Smørgrav * 19*0fb34990SDag-Erling Smørgrav * Neither the name of the NLNET LABS nor the names of its contributors may 20*0fb34990SDag-Erling Smørgrav * be used to endorse or promote products derived from this software without 21*0fb34990SDag-Erling Smørgrav * specific prior written permission. 22*0fb34990SDag-Erling Smørgrav * 23*0fb34990SDag-Erling Smørgrav * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 24*0fb34990SDag-Erling Smørgrav * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 25*0fb34990SDag-Erling Smørgrav * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 26*0fb34990SDag-Erling Smørgrav * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 27*0fb34990SDag-Erling Smørgrav * HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 28*0fb34990SDag-Erling Smørgrav * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED 29*0fb34990SDag-Erling Smørgrav * TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 30*0fb34990SDag-Erling Smørgrav * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 31*0fb34990SDag-Erling Smørgrav * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 32*0fb34990SDag-Erling Smørgrav * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 33*0fb34990SDag-Erling Smørgrav * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 34*0fb34990SDag-Erling Smørgrav */ 35*0fb34990SDag-Erling Smørgrav 36*0fb34990SDag-Erling Smørgrav /** 37*0fb34990SDag-Erling Smørgrav * \file 38*0fb34990SDag-Erling Smørgrav * 39*0fb34990SDag-Erling Smørgrav * This file contains a module that uses the redis database to cache 40*0fb34990SDag-Erling Smørgrav * dns responses. 41*0fb34990SDag-Erling Smørgrav */ 42*0fb34990SDag-Erling Smørgrav 43*0fb34990SDag-Erling Smørgrav /** the redis backend definition, contains callable functions 44*0fb34990SDag-Erling Smørgrav * and name string */ 45*0fb34990SDag-Erling Smørgrav extern struct cachedb_backend redis_backend; 46