| Home | Trees | Indices | Help |
|
|---|
|
|
Memory objects are key-value gateways to a database or any other kind of memory storage. They behave the same way dictionaries do, which makes it easier to mock them.
Required methods are __getitem__, __setitem__ and __delitem__. get(), set() are mapped to __getitem__ and __setitem__.
A convenience method __call__ is defined to use objects of this class as decorators. Doing so will apply the memorize pattern to the function. You can find more information in the corresponding docstring in __call__.
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
Inherited from |
|||
|
|||
|
Inherited from |
|||
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Thu Apr 22 14:33:19 2010 | http://epydoc.sourceforge.net |