Back to index

plone3  3.1.7
Public Member Functions | Static Public Attributes
CMFCore.CachingPolicyManager.CPMCache Class Reference
Inheritance diagram for CMFCore.CachingPolicyManager.CPMCache:
Inheritance graph
[legend]
Collaboration diagram for CMFCore.CachingPolicyManager.CPMCache:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def ZCache_invalidate
def ZCache_get
def ZCache_set

Static Public Attributes

tuple security = ClassSecurityInfo()

Detailed Description

Simple OFS.Cache-implementation

Definition at line 89 of file CachingPolicyManager.py.


Member Function Documentation

def CMFCore.CachingPolicyManager.CPMCache.ZCache_get (   self,
  ob,
  view_name,
  keywords,
  mtime_func,
  default 
)
An object is retrieved from the cache

This implementation stores nothing - a no-op.

Definition at line 104 of file CachingPolicyManager.py.

00104 
00105     def ZCache_get(self, ob, view_name, keywords, mtime_func, default):
00106         """ An object is retrieved from the cache
00107 
00108         This implementation stores nothing - a no-op.
00109         """
00110         pass

An object is forced out of the cache

This implementation stores nothing and does not attempt to 
communicate with cache servers, so this is a no-op.

Definition at line 95 of file CachingPolicyManager.py.

00095 
00096     def ZCache_invalidate(self, ob):
00097         """ An object is forced out of the cache
00098 
00099         This implementation stores nothing and does not attempt to 
00100         communicate with cache servers, so this is a no-op.
00101         """
00102         pass

def CMFCore.CachingPolicyManager.CPMCache.ZCache_set (   self,
  ob,
  data,
  view_name,
  keywords,
  mtime_func 
)
An object is pushed into the cache

Even though this cache implementation does not cache anything per se,
this method is used as a suitable hook to activate the real heavy
lifting done by the CachePolicyManager.

Definition at line 112 of file CachingPolicyManager.py.

00112 
00113     def ZCache_set(self, ob, data, view_name, keywords, mtime_func):
00114         """ An object is pushed into the cache
00115 
00116         Even though this cache implementation does not cache anything per se,
00117         this method is used as a suitable hook to activate the real heavy
00118         lifting done by the CachePolicyManager.
00119         """
00120         if ob.meta_type not in VIEW_METATYPES:
00121             ob = _ViewEmulator().__of__(ob)
00122 
00123         return _setCacheHeaders(ob, extra_context={})
00124 

Here is the call graph for this function:


Member Data Documentation

tuple CMFCore.CachingPolicyManager.CPMCache.security = ClassSecurityInfo() [static]

Definition at line 92 of file CachingPolicyManager.py.


The documentation for this class was generated from the following file: