Trees | Index | Help |
|
---|
Package ZenUtils :: Module ObjectCache :: Class ObjectCache |
|
object
--+ |Base
--+ |object
--+ | | |Persistent
--+ |Persistent
--+ | ObjectCache
Method Summary | |
---|---|
__init__(self,
timeout,
clearthresh)
| |
add an object to the cache | |
check to see if key is in cache return None if not | |
clean the cache if nessesary | |
Clear the cache. | |
getCache(self)
| |
return cache clearthresh | |
return cache timeout | |
make sure that volitile attributes exist | |
Inherited from Persistent :
__class_init__ ,
__getattribute__ ,
bobobase_modification_time ,
locked_in_version ,
modified_in_version
Inherited from Persistent :
__delattr__ ,
__getstate__ ,
__new__ ,
__reduce__ ,
__setattr__ ,
__setstate__ ,
_p_activate ,
_p_deactivate ,
_p_delattr ,
_p_getattr ,
_p_invalidate ,
_p_setattr
Inherited from Base :
__getnewargs__
Inherited from object :
__hash__ ,
__reduce_ex__ ,
__repr__ ,
__str__
|
Class Variable Summary | |
---|---|
tuple |
__ac_permissions__ = (('View', ('getCacheClearthresh', '...
|
DTMLFile |
editCache = <App.special_dtml.DTMLFile object at 0x358ac...
|
PermissionRole |
getCacheClearthresh__roles__ = <PermissionRole object at...
|
PermissionRole |
getCacheTimeout__roles__ = <PermissionRole object at 0x3...
|
tuple |
manage_options = ({'action': 'editCache', 'label': 'Cach...
|
Inherited from Persistent :
_p_changed ,
_p_jar ,
_p_mtime ,
_p_oid ,
_p_serial ,
_p_state
|
Method Details |
---|
addToCache(self, key, obj)add an object to the cache |
checkCache(self, key)check to see if key is in cache return None if not |
cleanCache(self, force=0)clean the cache if nessesary |
clearCache(self, key=None)Clear the cache. |
getCacheClearthresh(self)return cache clearthresh |
getCacheTimeout(self)return cache timeout |
initCache(self)make sure that volitile attributes exist |
Class Variable Details |
---|
__ac_permissions__
|
editCache
|
getCacheClearthresh__roles__
|
getCacheTimeout__roles__
|
manage_options
|
Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Thu Aug 16 09:55:08 2007 | http://epydoc.sf.net |