Home | Trees | Indices | Help |
|
---|
|
object --+ | dict --+ | AntiStampedeCache
A storage system for cached items which reduces stampede collisions.
|
|||
|
|||
|
|||
Inherited from Inherited from |
|
|||
Inherited from |
|
|||
Inherited from |
|
Return the cached value for the given key, or None. If timeout is not None, and the value is already being calculated by another thread, wait until the given timeout has elapsed. If the value is available before the timeout expires, it is returned. If not, None is returned, and a sentinel placed in the cache to signal other threads to wait. If timeout is None, no waiting is performed nor sentinels used. |
Set the cached value for the given key.
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Mon Jun 30 21:23:15 2014 | http://epydoc.sourceforge.net |