BigBrotherBot v1.9.0
System Development Information for the BigBrotherBot project.

b3::lib::beaker::middleware::CacheMiddleware Class Reference

List of all members.

Public Member Functions

def __init__
def __call__

Public Attributes

 app
 options
 cache_manager
 environ_key

Static Public Attributes

 cache = beaker_cache

Constructor & Destructor Documentation

def b3::lib::beaker::middleware::CacheMiddleware::__init__ (   self,
  app,
  config = None,
  environ_key = 'beaker.cache',
  kwargs 
)
Initialize the Cache Middleware

The Cache middleware will make a Cache instance available
every request under the ``environ['beaker.cache']`` key by
default. The location in environ can be changed by setting
``environ_key``.

``config``
    dict  All settings should be prefixed by 'cache.'. This
    method of passing variables is intended for Paste and other
    setups that accumulate multiple component settings in a
    single dictionary. If config contains *no cache. prefixed
    args*, then *all* of the config options will be used to
    intialize the Cache objects.

``environ_key``
    Location where the Cache instance will keyed in the WSGI
    environ

``**kwargs``
    All keyword arguments are assumed to be cache settings and
    will override any settings found in ``config``


Member Function Documentation

def b3::lib::beaker::middleware::CacheMiddleware::__call__ (   self,
  environ,
  start_response 
)

Member Data Documentation


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Properties