Improved memoisation

This commit is contained in:
Simon Brooke 2018-07-24 17:54:35 +01:00
parent 65eb334246
commit 20d8bdcb53
2 changed files with 3 additions and 0 deletions

View file

@ -2,6 +2,8 @@
A language for describing applications, from which code can be automatically generated.
[![Clojars Project](https://img.shields.io/clojars/v/adl.svg)](https://clojars.org/adl)
## Usage
A document describing the proposed application should be written in XML using the DTD `resources/schemas/adl-1.4.1.dtd`. It may then be transformed into a C# or Java application using the XSL transforms, see **History** below, but this code is very out of date and the resulting application is unlikely to be very usable. Alternatively, it can be transformed into a Clojure [Luminus](http://www.luminusweb.net/) application using the Clojure transformation, as follows:

View file

@ -120,6 +120,7 @@
(list
'memo/ttl
(cons 'fn (generate-handler-body query-map))
{}
:ttl/threshold
(* (volatility (:entity query-map)) 1000))))))))