mirror of
https://gitlab.com/vindarel/ciel.git
synced 2025-12-06 02:30:39 -08:00
more docstrings: function-cache
This commit is contained in:
parent
ad434ac4ea
commit
5089bf9373
1 changed files with 11 additions and 0 deletions
|
|
@ -318,3 +318,14 @@ Read more:
|
||||||
|
|
||||||
- https://lispcookbook.github.io/cl-cookbook/numbers.html
|
- https://lispcookbook.github.io/cl-cookbook/numbers.html
|
||||||
- https://cl-community-spec.github.io/pages/floor.html")
|
- https://cl-community-spec.github.io/pages/floor.html")
|
||||||
|
|
||||||
|
#+ciel
|
||||||
|
(docstring-append 'function-cache:defcached "
|
||||||
|
|
||||||
|
Example:
|
||||||
|
|
||||||
|
(defcached (foo :timeout 10) (arg)
|
||||||
|
(sleep 3)
|
||||||
|
arg)
|
||||||
|
|
||||||
|
The functions's result is cached for 10 seconds, for the given argument. A second call returns immediately.")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue