summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorGravatar Ziv Scully <ziv@mit.edu>2015-09-13 16:02:45 -0400
committerGravatar Ziv Scully <ziv@mit.edu>2015-09-13 16:02:45 -0400
commit46fe4e62ddefd8f79f4a29f7a273f585436d3c85 (patch)
treef6f9a9c57702517edc66c096a50efe0a6e7dca46 /include
parent6aadea0202190d17a35f289f984eb19ec8116672 (diff)
Start work on pure expression caching.
Diffstat (limited to 'include')
-rw-r--r--include/urweb/types_cpp.h28
-rw-r--r--include/urweb/urweb_cpp.h6
2 files changed, 17 insertions, 17 deletions
diff --git a/include/urweb/types_cpp.h b/include/urweb/types_cpp.h
index 7b9a90a4..84423105 100644
--- a/include/urweb/types_cpp.h
+++ b/include/urweb/types_cpp.h
@@ -123,31 +123,31 @@ typedef struct {
#include "uthash.h"
-typedef struct uw_sqlcache_CacheValue {
+typedef struct uw_Sqlcache_CacheValue {
char *result;
char *output;
-} uw_sqlcache_CacheValue;
+} uw_Sqlcache_CacheValue;
-typedef struct uw_sqlcache_CacheEntry {
+typedef struct uw_Sqlcache_CacheEntry {
char *key;
void *value;
time_t timeValid;
- struct uw_sqlcache_CacheEntry *prev;
- struct uw_sqlcache_CacheEntry *next;
+ struct uw_Sqlcache_CacheEntry *prev;
+ struct uw_Sqlcache_CacheEntry *next;
UT_hash_handle hh;
-} uw_sqlcache_CacheEntry;
+} uw_Sqlcache_CacheEntry;
-typedef struct uw_sqlcache_CacheList {
- uw_sqlcache_CacheEntry *first;
- uw_sqlcache_CacheEntry *last;
+typedef struct uw_Sqlcache_CacheList {
+ uw_Sqlcache_CacheEntry *first;
+ uw_Sqlcache_CacheEntry *last;
int size;
-} uw_sqlcache_CacheList;
+} uw_Sqlcache_CacheList;
-typedef struct uw_sqlcache_Cache {
- uw_sqlcache_CacheEntry *table;
+typedef struct uw_Sqlcache_Cache {
+ uw_Sqlcache_CacheEntry *table;
time_t timeInvalid;
- uw_sqlcache_CacheList *lru;
+ uw_Sqlcache_CacheList *lru;
int height;
-} uw_sqlcache_Cache;
+} uw_Sqlcache_Cache;
#endif
diff --git a/include/urweb/urweb_cpp.h b/include/urweb/urweb_cpp.h
index 3fac7041..05e3e4a0 100644
--- a/include/urweb/urweb_cpp.h
+++ b/include/urweb/urweb_cpp.h
@@ -406,8 +406,8 @@ void uw_Basis_writec(struct uw_context *, char);
#include "uthash.h"
-uw_sqlcache_CacheValue *uw_sqlcache_check(uw_sqlcache_Cache *, char **);
-uw_sqlcache_CacheValue *uw_sqlcache_store(uw_sqlcache_Cache *, char **, uw_sqlcache_CacheValue *);
-uw_sqlcache_CacheValue *uw_sqlcache_flush(uw_sqlcache_Cache *, char **);
+uw_Sqlcache_CacheValue *uw_Sqlcache_check(uw_Sqlcache_Cache *, char **);
+uw_Sqlcache_CacheValue *uw_Sqlcache_store(uw_Sqlcache_Cache *, char **, uw_Sqlcache_CacheValue *);
+uw_Sqlcache_CacheValue *uw_Sqlcache_flush(uw_Sqlcache_Cache *, char **);
#endif