3 The Component Cache

getCachedComponent (name, argDict, auxArgs, srcModTime = None)
returns cached component (or None), source Mod time
name
Name under which the cached output is stored.
argDict
Dictionary of explicit component arguments.
auxArgs
Dictionary of automatic component arguments.
srcModTime
Generally, modification time of source.

putCachedComponent (name, argDict, auxArgs, out, cache_exp_time)
Puts the cached form of a component's output to storage.
name
Name under which the cached output is stored.
argDict
Dictionary of component arguments.
auxArgs
Dictionary of automatic component arguments.
out
The output of the component.
cache_exp_time
The number of seconds past the epoch when the cached version will expire.

clearCache (name, arguments, matchExact = None)
Selectively removes cached components from cache.
name
Name of the component you want to clear.
arguments
Argument dictionary to match.
matchExact
If true, will clear only if the argument dictionary supplied matches the argument dictionary used to store the component exactly, otherwise, any cached version whose argument dictionary is a superset of arguments will be cleared.