Cache
PermanentEntries
return a sequence of the permanent entries
Calling Sequence
Parameters
Description
Examples
PermanentEntries( cache )
cache
-
cache table or procedure: the object whose entries are to be returned
The PermanentEntries command returns the values of the permanent entries of the given cache table. 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 values of the permanent entries from that table are returned. If the procedure does not have a table, NULL is returned.
PermanentEntries returns the values in the same format as entries, that is, a sequence of lists where the contents of each list is a value from a permanent entry from the table.
The PermanentIndices command can be used to get the indices of the permanent entries.
For more information on cache tables, see Cache Package.
c1≔Cache⁡
c1≔Cache⁡512
Cache:-AddPermanent⁡c1,x,y
Cache:-AddPermanent⁡c1,y,z
Cache:-PermanentEntries⁡c1
y,z
Cache:-PermanentIndices⁡c1
x,y
p := proc( x ) option cache; x^2; end proc;
p ≔ procxoptioncache;x^2end proc
Cache:-AddPermanent⁡p,2,2
Cache:-AddPermanent⁡p,3,3
Cache:-PermanentEntries⁡p
2,3
Cache:-PermanentIndices⁡p
See Also
Cache Package
Cache[AddPermanent]
Cache[AddTemporary]
Cache[PermanentIndices]
Cache[RemovePermanent]
Cache[RemoveTemporary]
Cache[Resize]
Cache[TemporaryEntries]
Cache[TemporaryIndices]
option cache
Download Help Document