val kind = FormVar.wrapExn (FormVar.getEnumErr ["WhileUsed","TimeOut","Size"]) "kind" handle _ => "Size" fun pp_kind kind = case kind of "Size" => `WhileUsed of size 10000 and without timeout` | _ => `^kind. Entries live in the cache in approximately 20 seconds.
` val _ = Page.return ("Caching Demonstration" ^": cache.sml") (` Cache entries map email addresses to pairs of user ids and names.
Using cache name users and cache kind: ` ^^ (pp_kind kind) ^^ `
The cache has ML type: (string,(int,string)) cache
Lookup Entry | Flush | Add Entry |
---|---|---|
You can choose among the following cache kinds: Size, WhileUsed, TimeOut
The cache has ML type: (string,string list) cache
Lookup Entry | Add Entry |
---|---|
The cache has ML type: (string,string,int) cache
Lookup Entry | Add Entry |
---|---|
`)