Metadata-Version: 1.0
Name: eea.cache
Version: 4.2
Summary: Tools and config for memcache related caching
Home-page: http://svn.eionet.europa.eu/projects/Zope/browser/trunk/eea.cache
Author: Sasha Vincic, European Environment Agency (EEA)
Author-email: webadmin@eea.europa.eu
License: GPL
Description: EEA Cache product
        =================
        
        This package combines the features from lovely.memcached and plone.memoize.ram.
        It provides a decorator and utility for Memcaches at EEA.
        The decorator allows you set dependencies known by lovely.memcached
        
        
        Contents
        ========
        
        .. contents::
        
        
        Cache decorator
        ===============
        
          >>> def key(method, self):
          ...     return method.__name__
        
          >>> from eea.cache import cache
          >>> @cache(key, dependencies=["frontpage"])
          ... def myMethod(num):
          ...     return num*num
        
        Lets clear any running memcache
        
          >>> from lovely.memcached.event import InvalidateCacheEvent
          >>> from zope.event import notify
          >>> notify(InvalidateCacheEvent(raw=True, dependencies=['frontpage']))
        
        Our myMethod will now be cached with the key returned from the method 'key' and
        with dependency 'frontpage'.
        
          >>> myMethod(2)
          4
          >>> myMethod(3)
          4
        
          >>> notify(InvalidateCacheEvent(raw=True, dependencies=['frontpage']))
          >>> myMethod(3)
          4
        
        
        Funding
        =======
        
          EEA_ - European Enviroment Agency (EU)
        
        .. _EEA: http://www.eea.europa.eu/
        
        Changelog
        =========
        
        4.2 - (2012-02-06)
        ------------------
         * no changes
        
        4.0 - (2011-11-07)
        ------------------
        * Feature: Plone 4.x compatible release
          [ghicaale #4309]
        
        0.3 - (2010-11-22)
        ------------------
        * Bug fix: fixed tests namespace in order to be used within hudson
          [voineali #3821]
        
        0.2 - (2010-11-10)
        ------------------
        * Bug fix: added fake memcache client in order to fix broken doctests
          [voineali]
        
        0.1 - (2009-11-10)
        ------------------
        * Initial release
        
        
Keywords: plone cache eea
Platform: UNKNOWN
Classifier: Framework :: Plone
Classifier: Programming Language :: Python
Classifier: Topic :: Software Development :: Libraries :: Python Modules
