Submit
Path:
~
/
/
proc
/
thread-self
/
root
/
usr
/
lib64
/
python2.7
/
site-packages
/
Cheetah
/
File Content:
CacheRegion.pyo
� [Z-Lc @ s� d Z y d d l m Z Wn! e k r= d d l m Z n Xd d l Z d d l Z d e f d � � YZ d e f d � � YZ d e f d � � YZ d S( sT Cache holder classes for Cheetah: Cache regions are defined using the #cache Cheetah directive. Each cache region can be viewed as a dictionary (keyed by cacheRegionID) handling at least one cache item (the default one). It's possible to add cacheItems in a region by using the `varyBy` #cache directive parameter as in the following example:: #def getArticle this is the article content. #end def #cache varyBy=$getArticleID() $getArticle($getArticleID()) #end cache The code above will generate a CacheRegion and add new cacheItem for each value of $getArticleID(). i����( t md5Nt CacheItemc B s_ e Z d Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z RS( s� A CacheItem is a container storing: - cacheID (string) - refreshTime (timestamp or None) : last time the cache was refreshed - data (string) : the content of the cache c C s( | | _ | | _ d | _ d | _ d S( Ni ( t _cacheItemIDt _cacheStoret Nonet _refreshTimet _expiryTime( t selft cacheItemIDt cacheStore( ( s9 /usr/lib64/python2.7/site-packages/Cheetah/CacheRegion.pyt __init__'