comparison src/cache.sml @ 2233:af1585e7d645

More work factoring out Sqlcache back end.
author Ziv Scully <ziv@mit.edu>
date Wed, 06 May 2015 23:11:30 -0400
parents
children 0bdfec16a01d
comparison
equal deleted inserted replaced
2232:a07b91fa71db 2233:af1585e7d645
1 structure Cache = struct
2
3 type cache =
4 {(* Takes a query ID and parameters (and, for store, the value to
5 store) and gives an FFI call that checks, stores, or flushes the
6 relevant entry. The parameters are strings for check and store and
7 optional strings for flush because some parameters might not be
8 fixed. *)
9 check : int * Mono.exp list -> Mono.exp',
10 store : int * Mono.exp list * Mono.exp -> Mono.exp',
11 flush : int * Mono.exp list -> Mono.exp',
12 (* Generates C needed for FFI calls in check, store, and flush. *)
13 setupGlobal : Print.PD.pp_desc,
14 setupQuery : {index : int, params : int} -> Print.PD.pp_desc}
15
16 end