Cache[RemoveTemporary] - remove a temporary entry from the cache table
|
Calling Sequence
|
|
RemoveTemporary( cache, key )
|
|
Parameters
|
|
cache
|
-
|
cache table or procedure: the object the entry is removed from
|
key
|
-
|
list: the key to remove
|
|
|
|
|
Description
|
|
•
|
The RemoveTemporary command removes the temporary entry for which key is the key. The cache table can be given directly as cache, or cache can refer to a procedure that has, or can have, a cache remember table. If such a procedure is given and it has a cache remember table, the temporary entry is removed from that table. If the procedure does not have a table no action is taken.
|
•
|
To handle an expression sequence as a key, key must be given in a list. The actual key used for the entry is op(key).
|
•
|
To add a temporary entry to a cache table, use AddTemporary.
|
|
|
Examples
|
|
>
|
|
| (1) |
>
|
|
>
|
|
>
|
|
| (2) |
>
|
|
>
|
|
| (3) |
>
|
|
>
|
|
| (4) |
>
|
p := proc(x,y) option cache; x+y; end proc;
|
| (5) |
>
|
|
| (6) |
>
|
|
>
|
|
>
|
|
| (7) |
>
|
|
>
|
|
| (8) |
>
|
|
| (9) |
>
|
|
| (10) |
>
|
|
>
|
|
| (11) |
>
|
|
| (12) |
|
|
Download Help Document
Was this information helpful?