summaryrefslogtreecommitdiff
path: root/src/toy_cache.sml
diff options
context:
space:
mode:
authorGravatar Ziv Scully <ziv@mit.edu>2015-05-06 23:11:30 -0400
committerGravatar Ziv Scully <ziv@mit.edu>2015-05-06 23:11:30 -0400
commitca3efa1458583772a9826198ed4b99eec381f2de (patch)
tree601805ceb6fea9d5d9282a2b2f51857b416e8f23 /src/toy_cache.sml
parent9c155aa780bef9e6edae2c07516693c12b37962b (diff)
More work factoring out Sqlcache back end.
Diffstat (limited to 'src/toy_cache.sml')
-rw-r--r--src/toy_cache.sml11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/toy_cache.sml b/src/toy_cache.sml
index 23dfe4fe..126768b6 100644
--- a/src/toy_cache.sml
+++ b/src/toy_cache.sml
@@ -1,4 +1,7 @@
-structure ToyCache = struct
+structure ToyCache : sig
+ val cache : Cache.cache
+end = struct
+
(* Mono *)
@@ -182,4 +185,10 @@ fun setupQuery {index, params} =
val setupGlobal = string "/* No global setup for toy cache. */"
+
+(* Bundled up. *)
+
+val cache = {check = check, store = store, flush = flush,
+ setupQuery = setupQuery, setupGlobal = setupGlobal}
+
end