1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
| | /*
* db.h
*
* Copyright (c) 2017 Sebastian Gniazdowski
* All rights reserved.
*
* Permission is hereby granted, without written agreement and without
* license or royalty fees, to use, copy, modify, and distribute this
* software and to distribute modified versions of this software for any
* purpose, provided that the above copyright notice and the following
* two paragraphs appear in all copies of this software.
*
* In no event shall Sebastian Gniazdowski or the Zsh Development Group be
* liable to any party for direct, indirect, special, incidental, or
* consequential damages arising out of the use of this software and its
* documentation, even if Paul Falstad and the Zsh Development Group have
* been advised of the possibility of such damage.
*
* Sebastian Gniazdowski and the Zsh Development Group specifically disclaim
* any warranties, including, but not limited to, the implied warranties of
* merchantability and fitness for a particular purpose. The software provided
* hereunder is on an "as is" basis, and Paul Falstad and the Zsh Development
* Group have no obligation to provide maintenance, support, updates,
* enhancements, or modifications.
*/
/* Backend commands */
#define DB_TIE 1
#define DB_UNTIE 2
#define DB_IS_TIED 3
#define DB_GET_ADDRESS 4
#define DB_CLEAR_CACHE 5
/* Data types, created according to redis */
#define DB_KEY_TYPE_NONE 0 /* unknown type because non-existent key */
#define DB_KEY_TYPE_UNKNOWN 1
#define DB_KEY_TYPE_NO_KEY 2
#define DB_KEY_TYPE_STRING 3
#define DB_KEY_TYPE_LIST 4
#define DB_KEY_TYPE_SET 5
#define DB_KEY_TYPE_ZSET 6
#define DB_KEY_TYPE_HASH 7
|