Cache - a restricted subset of the standard dictionary interface
Methods
|
|
__setitem__
clear
get
values
|
|
__setitem__
|
__setitem__ ( key, value )
Save value in the cache under key
Note that no particular lifetime for value remaining in the
cache is required. For example, the NoCache type implements
this method as a no-op.
|
|
clear
|
clear ()
Clear cache contents, if any
|
|
get
|
get ( key, default=None )
Retrieve object denoted by key , or default if not found
Note that cache implementations do not have to guarantee that
get() will return items placed in the cache, or indeed
ever return anything other than default . For example, the
NoCache type always returns default .
|
|
values
|
values ()
Return a sequence of the cache's contents
|
|