Trees | Index | Help |
|
---|
Package OFS :: Module Cache :: Class Cacheable |
|
ZopePageTemplate
Method Summary | |
---|---|
Override to provide configuration of caching behavior that can only be specific to the cacheable object. | |
Returns true if caching is enabled for this object or method. | |
Retrieves the cached view for the object under the conditions specified by keywords. | |
Gets the cache associated with this object. | |
Returns the currently associated cache manager. | |
Returns the id of the current ZCacheManager. | |
Returns a list of mappings containing the id and title of the available ZCacheManagers. | |
Returns the URL of the current ZCacheManager. | |
Returns the highest of the last mod times. | |
If this object is a method of a ZClass and we're working with the primary view, uses the ZClass instance as ob and our own ID as the view_name. | |
Called after a cacheable object is edited. | |
Returns 1 when this object is a ZClass method. | |
Returns true only if associated with a cache manager and caching of this method is enabled. | |
Cacheable views should call this method after generating cacheable results. | |
Changes the enabled flag. | |
Changes the manager_id for this object. |
Class Variable Summary | |
---|---|
tuple |
__ac_permissions__ = (('View management screens', ('ZCac...
|
Implements |
__implemented__ = <implementedBy OFS.Cache.Cacheable>
|
ClassProvides |
__providedBy__ = <zope.interface.declarations.ClassProvi...
|
ClassProvides |
__provides__ = <zope.interface.declarations.ClassProvide...
|
tuple |
manage_options = ({'action': 'ZCacheable_manage', 'filte...
|
PermissionRole |
ZCacheable_configHTML__roles__ = <PermissionRole object ...
|
PermissionRole |
ZCacheable_enabled__roles__ = <PermissionRole object at ...
|
tuple |
ZCacheable_get__roles__ = ()
|
tuple |
ZCacheable_getCache__roles__ = ()
|
tuple |
ZCacheable_getManager__roles__ = ()
|
PermissionRole |
ZCacheable_getManagerId__roles__ = <PermissionRole objec...
|
PermissionRole |
ZCacheable_getManagerIds__roles__ = <PermissionRole obje...
|
PermissionRole |
ZCacheable_getManagerURL__roles__ = <PermissionRole obje...
|
tuple |
ZCacheable_getModTime__roles__ = ()
|
tuple |
ZCacheable_getObAndView__roles__ = ()
|
PermissionRole |
ZCacheable_invalidate__roles__ = <PermissionRole object ...
|
PermissionRole |
ZCacheable_isAMethod__roles__ = <PermissionRole object a...
|
tuple |
ZCacheable_isCachingEnabled__roles__ = ()
|
DTMLFile |
ZCacheable_manage = <App.special_dtml.DTMLFile object at...
|
PermissionRole |
ZCacheable_manage__roles__ = <PermissionRole object at 0...
|
tuple |
ZCacheable_set__roles__ = ()
|
PermissionRole |
ZCacheable_setEnabled__roles__ = <PermissionRole object ...
|
PermissionRole |
ZCacheable_setManagerId__roles__ = <PermissionRole objec...
|
int |
_Cacheable__enabled = 1 |
NoneType |
_Cacheable__manager_id = None |
int |
_isCacheable = 1 |
NoneType |
_v_ZCacheable_cache = None |
int |
_v_ZCacheable_manager_timestamp = 0 |
Method Details |
---|
ZCacheable_configHTML(self)Override to provide configuration of caching behavior that can only be specific to the cacheable object. |
ZCacheable_enabled(self)Returns true if caching is enabled for this object or method. |
ZCacheable_get(self, view_name='', keywords=None, mtime_func=None, default=None)Retrieves the cached view for the object under the conditions specified by keywords. If the value is not yet cached, returns the default. |
ZCacheable_getCache(self)Gets the cache associated with this object. |
ZCacheable_getManager(self)Returns the currently associated cache manager. |
ZCacheable_getManagerId(self)Returns the id of the current ZCacheManager. |
ZCacheable_getManagerIds(self)Returns a list of mappings containing the id and title of the available ZCacheManagers. |
ZCacheable_getManagerURL(self)Returns the URL of the current ZCacheManager. |
ZCacheable_getModTime(self, mtime_func=None)Returns the highest of the last mod times. |
ZCacheable_getObAndView(self, view_name)If this object is a method of a ZClass and we're working with the primary view, uses the ZClass instance as ob and our own ID as the view_name. Otherwise returns self and view_name unchanged. |
ZCacheable_invalidate(self, view_name='', REQUEST=None)Called after a cacheable object is edited. Causes all cache entries that apply to the view_name to be removed. Returns a status message. |
ZCacheable_isAMethod(self)Returns 1 when this object is a ZClass method. |
ZCacheable_isCachingEnabled(self)Returns true only if associated with a cache manager and caching of this method is enabled. |
ZCacheable_set(self, data, view_name='', keywords=None, mtime_func=None)Cacheable views should call this method after generating cacheable results. The data argument can be of any Python type. |
ZCacheable_setEnabled(self, enabled=0, REQUEST=None)Changes the enabled flag. Normally used only when setting up cacheable ZClass methods. |
ZCacheable_setManagerId(self, manager_id, REQUEST=None)Changes the manager_id for this object. |
Class Variable Details |
---|
__implemented__
|
__providedBy__
|
__provides__
|
manage_options
|
ZCacheable_configHTML__roles__
|
ZCacheable_enabled__roles__
|
ZCacheable_get__roles__
|
ZCacheable_getCache__roles__
|
ZCacheable_getManager__roles__
|
ZCacheable_getManagerId__roles__
|
ZCacheable_getManagerIds__roles__
|
ZCacheable_getManagerURL__roles__
|
ZCacheable_getModTime__roles__
|
ZCacheable_getObAndView__roles__
|
ZCacheable_invalidate__roles__
|
ZCacheable_isAMethod__roles__
|
ZCacheable_isCachingEnabled__roles__
|
ZCacheable_manage
|
ZCacheable_manage__roles__
|
ZCacheable_set__roles__
|
ZCacheable_setEnabled__roles__
|
ZCacheable_setManagerId__roles__
|
_Cacheable__enabled
|
_Cacheable__manager_id
|
_isCacheable
|
_v_ZCacheable_cache
|
_v_ZCacheable_manager_timestamp
|
Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Thu Aug 16 09:55:12 2007 | http://epydoc.sf.net |