Improved memoisation
This commit is contained in:
parent
65eb334246
commit
20d8bdcb53
|
@ -2,6 +2,8 @@
|
|||
|
||||
A language for describing applications, from which code can be automatically generated.
|
||||
|
||||
[](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:
|
||||
|
|
|
@ -120,6 +120,7 @@
|
|||
(list
|
||||
'memo/ttl
|
||||
(cons 'fn (generate-handler-body query-map))
|
||||
{}
|
||||
:ttl/threshold
|
||||
(* (volatility (:entity query-map)) 1000))))))))
|
||||
|
||||
|
|
Loading…
Reference in a new issue