1 |
|
2 |
/* |
3 |
* PostgreSQL functions to interface with memcache. |
4 |
* |
5 |
* $PostgreSQL: pgmemcache/pgmemcache.h,v 1.6 2004/12/25 03:00:16 seanc Exp $ |
6 |
* |
7 |
* Copyright (c) 2004 Sean Chittenden <sean@chittenden.org> |
8 |
* |
9 |
* Permission is hereby granted, free of charge, to any person |
10 |
* obtaining a copy of this software and associated documentation |
11 |
* files (the "Software"), to deal in the Software without |
12 |
* restriction, including without limitation the rights to use, copy, |
13 |
* modify, merge, publish, distribute, sublicense, and/or sell copies |
14 |
* of the Software, and to permit persons to whom the Software is |
15 |
* furnished to do so, subject to the following conditions: |
16 |
* |
17 |
* The above copyright notice and this permission notice shall be |
18 |
* included in all copies or substantial portions of the Software. |
19 |
* |
20 |
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, |
21 |
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF |
22 |
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND |
23 |
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS |
24 |
* BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN |
25 |
* ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN |
26 |
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
27 |
* SOFTWARE. |
28 |
* |
29 |
* http://people.FreeBSD.org/~seanc/pgmemcache/ |
30 |
*/ |
31 |
|
32 |
#ifndef PGMEMCACHE_H |
33 |
#define PGMEMCACHE_H |
34 |
|
35 |
#include <memcache.h> |
36 |
|
37 |
Datum memcache_add(PG_FUNCTION_ARGS); |
38 |
Datum memcache_add_absexpire(PG_FUNCTION_ARGS); |
39 |
PG_FUNCTION_INFO_V1(memcache_add); |
40 |
PG_FUNCTION_INFO_V1(memcache_add_absexpire); |
41 |
|
42 |
Datum memcache_decr(PG_FUNCTION_ARGS); |
43 |
PG_FUNCTION_INFO_V1(memcache_decr); |
44 |
|
45 |
Datum memcache_delete(PG_FUNCTION_ARGS); |
46 |
PG_FUNCTION_INFO_V1(memcache_delete); |
47 |
|
48 |
Datum memcache_flush(PG_FUNCTION_ARGS); |
49 |
PG_FUNCTION_INFO_V1(memcache_flush); |
50 |
|
51 |
Datum memcache_flush_all0(PG_FUNCTION_ARGS); |
52 |
PG_FUNCTION_INFO_V1(memcache_flush_all0); |
53 |
|
54 |
Datum memcache_free(PG_FUNCTION_ARGS); |
55 |
PG_FUNCTION_INFO_V1(memcache_free); |
56 |
|
57 |
Datum memcache_get(PG_FUNCTION_ARGS); |
58 |
PG_FUNCTION_INFO_V1(memcache_get); |
59 |
|
60 |
Datum memcache_hash(PG_FUNCTION_ARGS); |
61 |
PG_FUNCTION_INFO_V1(memcache_hash); |
62 |
|
63 |
Datum memcache_incr(PG_FUNCTION_ARGS); |
64 |
PG_FUNCTION_INFO_V1(memcache_incr); |
65 |
|
66 |
Datum memcache_init(PG_FUNCTION_ARGS); |
67 |
PG_FUNCTION_INFO_V1(memcache_init); |
68 |
|
69 |
Datum memcache_replace(PG_FUNCTION_ARGS); |
70 |
Datum memcache_replace_absexpire(PG_FUNCTION_ARGS); |
71 |
PG_FUNCTION_INFO_V1(memcache_replace); |
72 |
PG_FUNCTION_INFO_V1(memcache_replace_absexpire); |
73 |
|
74 |
Datum memcache_server_add(PG_FUNCTION_ARGS); |
75 |
PG_FUNCTION_INFO_V1(memcache_server_add); |
76 |
|
77 |
Datum memcache_server_find(PG_FUNCTION_ARGS); |
78 |
PG_FUNCTION_INFO_V1(memcache_server_find); |
79 |
|
80 |
Datum memcache_server_find_hash(PG_FUNCTION_ARGS); |
81 |
PG_FUNCTION_INFO_V1(memcache_server_find_hash); |
82 |
|
83 |
Datum memcache_set(PG_FUNCTION_ARGS); |
84 |
Datum memcache_set_absexpire(PG_FUNCTION_ARGS); |
85 |
PG_FUNCTION_INFO_V1(memcache_set); |
86 |
PG_FUNCTION_INFO_V1(memcache_set_absexpire); |
87 |
|
88 |
Datum memcache_stats(PG_FUNCTION_ARGS); |
89 |
Datum memcache_stat(PG_FUNCTION_ARGS); |
90 |
PG_FUNCTION_INFO_V1(memcache_stats); |
91 |
PG_FUNCTION_INFO_V1(memcache_stat); |
92 |
|
93 |
|
94 |
/* DEPRECIATED INTERFACES */ |
95 |
|
96 |
/* Use memcache_flush() */ |
97 |
Datum memcache_flush_all(PG_FUNCTION_ARGS); |
98 |
PG_FUNCTION_INFO_V1(memcache_flush_all); |
99 |
|
100 |
#endif |