Mercurial > urweb
diff src/toy_cache.sml @ 2286:0bdfec16a01d
Fix issue with one-element caches. Locking still WIP.
author | Ziv Scully <ziv@mit.edu> |
---|---|
date | Fri, 13 Nov 2015 01:04:32 -0500 |
parents | a647a1560628 |
children |
line wrap: on
line diff
--- a/src/toy_cache.sml Thu Nov 12 16:36:35 2015 -0500 +++ b/src/toy_cache.sml Fri Nov 13 01:04:32 2015 -0500 @@ -24,6 +24,9 @@ fun flush (index, keys) = ffiAppCache' ("flush", index, withTyp optionStringTyp keys) +fun lock (index, keys) = + raise Fail "ToyCache doesn't yet implement lock" + (* Cjr *) @@ -198,7 +201,7 @@ (* Bundled up. *) -val cache = {check = check, store = store, flush = flush, +val cache = {check = check, store = store, flush = flush, lock = lock, setupQuery = setupQuery, setupGlobal = setupGlobal} end