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