Package bosco :: Module ranking :: Class Cache
[hide private]
[frames] | no frames]

Class Cache

source code

object --+
         |
        Cache

Cache for scoreing and validation results.

Instance Methods [hide private]
 
__init__(self, observer=None)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
__getitem__(self, key) source code
 
__setitem__(self, key, value) source code
 
__delitem__(self, obj) source code
 
__contains__(self, key) source code
 
clear(self) source code
 
update(self, obj) source code
 
set_observer(self, observer)
Sets an observer for this cache.
source code
 
remove_observer(self)
Removes any existing observer for this cache.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, observer=None)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Parameters:
  • observer (object of class EventObserver) - Observer wich notifys the cache of changes in cached objects.
Overrides: object.__init__