Maple Professionel
Maple Académique
Maple Edition Étudiant
Maple Personal Edition
Maple Player
Maple Player for iPad
MapleSim Professionel
MapleSim Académique
Maple T.A. - Suite d'examens de classement
Maple T.A. MAA Placement Test Suite
Möbius - Didacticiels de mathématiques en ligne
Machine Design / Industrial Automation
Aéronautique
Ingénierie des véhicules
Robotics
Energie
System Simulation and Analysis
Model development for HIL
Modélisation du procédé pour la conception de systèmes de contrôle
Robotics/Motion Control/Mechatronics
Other Application Areas
Enseignement des mathématiques
Enseignement de l’ingénierie
Enseignement secondaire et supérieur (CPGE, BTS)
Tests et évaluations
Etudiants
Modélisation financière
Recherche opérationnelle
Calcul haute performance
Physique
Webinaires en direct
Webinaires enregistrés
Agenda des évènements
Forum MaplePrimes
Blog Maplesoft
Membres Maplesoft
Maple Ambassador Program
MapleCloud
Livres blancs techniques
Bulletin électronique
Livres Maple
Math Matters
Portail des applications
Galerie de modèles MapleSim
Cas d'Etudes Utilisateur
Exploring Engineering Fundamentals
Concepts d’enseignement avec Maple
Centre d’accueil utilisateur Maplesoft
Centre de ressources pour enseignants
Centre d’assistance aux étudiants
Cache[AddPermanent] - add a permanent entry to the cache table
Calling Sequence
AddPermanent( cache, key, value )
Parameters
cache
-
cache table or procedure: the object in which to insert the entry
key
list: the key to add
value
anything: the value to associate with key
Description
The AddPermanent command creates a permanent entry associating key with value in a 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 permanent entry is inserted into that table. Otherwise, a new cache table is created, installed as the procedure's remember table and the permanent entry is inserted into that table.
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).
If more than one argument is passed after key, then an expression sequence containing those arguments is used as value.
Assigning directly into a cache table, using the cache[key] := value notation, creates a temporary entry. Calling AddPermanent is the only way to create a permanent entry into a cache table.
To remove a permanent entry from a cache table use RemovePermanent.
Creating a permanent entry for a key that already has a temporary entry is not an error. In this case, the temporary entry is used.
For more information on cache tables, see Cache Package.
Examples
p := proc(x,y) option cache; x+y; end proc;
See Also
Cache Package, Cache[AddTemporary], Cache[PermanentEntries], Cache[PermanentIndices], Cache[RemovePermanent], Cache[RemoveTemporary]
Download Help Document