Package bazaar :: Module cache :: Class Cache
[show private | hide private]
[frames | no frames]

Type Cache

object --+
         |
        Cache

Known Subclasses:
Full, Lazy

Abstract, basic class for different data caches.
Method Summary
  __init__(self, owner)
Create cache object.
  __getitem__(self, param)
Return referenced object or association data.
  load(self, key)
Load referenced objects or association data from database.
    Inherited from object
  __delattr__(...)
x.__delattr__('name') <==> del x.name
  __getattribute__(...)
x.__getattribute__('name') <==> x.name
  __hash__(x)
x.__hash__() <==> hash(x)
  __new__(T, S, ...)
T.__new__(S, ...) -> a new object with type S, a subtype of T
  __reduce__(...)
helper for pickle
  __reduce_ex__(...)
helper for pickle
  __repr__(x)
x.__repr__() <==> repr(x)
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value
  __str__(x)
x.__str__() <==> str(x)

Instance Variable Summary
  owner: Owner of the cache - object broker or association object.

Method Details

__init__(self, owner)
(Constructor)

Create cache object.
Parameters:
owner - Owner of the cache - object broker or association object.
Overrides:
__builtin__.object.__init__

__getitem__(self, param)
(Indexing operator)

Return referenced object or association data.
Parameters:
param - Referenced object primary key value or application object.

load(self, key)

Load referenced objects or association data from database.

Instance Variable Details

owner

Owner of the cache - object broker or association object.

Generated by Epydoc 2.1 on Tue May 10 18:27:29 2005 http://epydoc.sf.net