Trees | Indices | Help |
---|
|
twisted.spread.jelly.Jellyable --+ | twisted.spread.flavors.Serializable --+ | twisted.spread.flavors.Copyable --+ | twisted.spread.flavors.Cacheable --+ | StateCacheable
I am a cacheable state object.
I cache key-value pairs, where values can be either single objects or list of objects.
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from Inherited from Inherited from Inherited from |
|
|||
Inherited from |
|
Get the state cache value for the given key. Return otherwise in case where key is present but value None. |
Set a given state key to the given value. Notifies observers of this Cacheable through observe_set. |
Append the given object to the given list. Notifies observers of this Cacheable through observe_append. |
Remove the given object from the given list. Notifies observers of this Cacheable through observe_remove. |
Set a value in the given dict. Notifies observers of this Cacheable through observe_setitem. |
Removes an element from the given dict. Note that the key refers to the dict; it is the subkey (and its value) that will be removed. Notifies observers of this Cacheable through observe_delitem. |
Get state to cache on the client and client-cache reference to observe locally. This is similiar to getStateToCopyFor, but it additionally passes in a reference to the client-side RemoteCache instance that will be created when it is unserialized. This allows Cacheable instances to keep their RemoteCaches up to date when they change, such that no changes can occur between the point at which the state is initially copied and the client receives it that are not propogated.
|
This method is called when a client has stopped observing me. The 'observer' argument is the same as that passed in to getStateToCacheAndObserveFor.
|
A helper function that adds an object that would like to get informed by StateCacheable when observers has been added or removed.
|
Remove the object that listens to StateCacheable observer events
|
Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Tue Aug 13 06:17:09 2013 | http://epydoc.sourceforge.net |