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

b3::lib::beaker::cache::Cache Class Reference

List of all members.

Public Member Functions

def __init__
def put
def get
def remove_value
def clear
def __getitem__
def __contains__
def has_key
def __delitem__
def __setitem__

Public Attributes

 namespace
 expiretime
 starttime
 nsargs

Static Public Attributes

 set_value = put
 get_value = get
 remove = remove_value

Private Member Functions

def _get_cache
def _get_value
def _legacy_get_value

Detailed Description

Front-end to the containment API implementing a data cache.

:param namespace: the namespace of this Cache

:param type: type of cache to use

:param expire: seconds to keep cached data

:param expiretime: seconds to keep cached data (legacy support)

:param starttime: time when cache was cache was


Constructor & Destructor Documentation

def b3::lib::beaker::cache::Cache::__init__ (   self,
  namespace,
  type = 'memory',
  expiretime = None,
  starttime = None,
  expire = None,
  nsargs 
)

Member Function Documentation

def b3::lib::beaker::cache::Cache::__contains__ (   self,
  key 
)
def b3::lib::beaker::cache::Cache::__delitem__ (   self,
  key 
)
def b3::lib::beaker::cache::Cache::__getitem__ (   self,
  key 
)
def b3::lib::beaker::cache::Cache::__setitem__ (   self,
  key,
  value 
)
def b3::lib::beaker::cache::Cache::_get_cache (   cls,
  namespace,
  kw 
) [private]
def b3::lib::beaker::cache::Cache::_get_value (   self,
  key,
  kw 
) [private]
def b3::lib::beaker::cache::Cache::_legacy_get_value (   self,
  key,
  type,
  kw 
) [private]
def b3::lib::beaker::cache::Cache::clear (   self)
Clear all the values from the namespace
def b3::lib::beaker::cache::Cache::get (   self,
  key,
  kw 
)
Retrieve a cached value from the container
def b3::lib::beaker::cache::Cache::has_key (   self,
  key 
)
def b3::lib::beaker::cache::Cache::put (   self,
  key,
  value,
  kw 
)
def b3::lib::beaker::cache::Cache::remove_value (   self,
  key,
  kw 
)

Member Data Documentation

b3::lib::beaker::cache::Cache::remove = remove_value [static]

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