aboutsummaryrefslogtreecommitdiffstats
path: root/src/cache.h
diff options
context:
space:
mode:
authorJose Bollo <jose.bollo@iot.bzh>2018-09-19 14:52:03 +0200
committerJose Bollo <jose.bollo@iot.bzh>2018-09-20 23:39:57 +0200
commit4123ffb189acd0c18cddd0df75a58cbc3276ad80 (patch)
treea393e83dce5f57c7db0ab5475841c86829468ebe /src/cache.h
parent7ae3477d84ae13c5e9ef9bb1980a8f70f8b7e9bf (diff)
Add session, value as string and expiration
The DB now records sessions. It has expiration management (currently coarse: ~16s, see db.c) that is propagated to caches. Values are now strings. Default values are "yes" and "no" for allowed or denied permissions. new program: cynadm Signed-off-by: Jose Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'src/cache.h')
-rw-r--r--src/cache.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cache.h b/src/cache.h
index 5cd827b..bd56601 100644
--- a/src/cache.h
+++ b/src/cache.h
@@ -38,7 +38,8 @@ cache_put(
const char *session,
const char *user,
const char *permission,
- int value
+ int value,
+ time_t expire
);
extern