Package entropy :: Package core :: Package settings :: Module base :: Class SystemSettings :: Class CachingList

Class CachingList

source code


This object overrides a list, making possible to store cache information in the same place of the data to be cached.

Instance Methods
new empty list
__init__(self, *args, **kwargs)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
__enter__(self)
Make possible to acquire the whole cache content in a thread-safe way.
source code
 
__exit__(self, exc_type, exc_value, traceback)
Make possible to add plugins without triggering parse() every time.
source code
 
get(self)
Get cache object
source code
 
set(self, cache_obj)
Set cache object
source code

Inherited from list: __add__, __contains__, __delitem__, __delslice__, __eq__, __ge__, __getattribute__, __getitem__, __getslice__, __gt__, __iadd__, __imul__, __iter__, __le__, __len__, __lt__, __mul__, __ne__, __new__, __repr__, __reversed__, __rmul__, __setitem__, __setslice__, __sizeof__, append, count, extend, index, insert, pop, remove, reverse, sort

Inherited from object: __delattr__, __format__, __reduce__, __reduce_ex__, __setattr__, __str__, __subclasshook__

Class Variables

Inherited from list: __hash__

Properties

Inherited from object: __class__

Method Details

__init__(self, *args, **kwargs)
(Constructor)

source code 

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

Returns: new empty list
Overrides: object.__init__
(inherited documentation)

__exit__(self, exc_type, exc_value, traceback)

source code 

Make possible to add plugins without triggering parse() every time. Reload SystemSettings on exit