Go to the latest version of this document.

# ``twisted`.`spread`.`pb`.`RemoteCacheObserver``

class documentation

`class RemoteCacheObserver: (source)`

Constructor: `RemoteCacheObserver(broker, cached, perspective)`

View In Hierarchy

I am a reverse-reference to the peer's `RemoteCache`.

I am generated automatically when a cache is serialized. I represent a reference to the client's `RemoteCache` object that will represent a particular `Cacheable`; I am the additional object passed to getStateToCacheAndObserveFor.

Method | `__cmp__` | Compare me to another `RemoteCacheObserver`.
Method | `__hash__` | Generate a hash unique to all `RemoteCacheObserver`s for this broker/perspective/cached triplet
Method | `__init__` | (internal) Initialize me.
Method | `__repr__` | Undocumented
Method | `callRemote` | (internal) action method.
Method | `remoteMethod` | Get a `pb.RemoteMethod` for this key.
Instance Variable | `broker` | Undocumented
Instance Variable | `cached` | Undocumented
Instance Variable | `perspective` | Undocumented

def __cmp__(self, other): (source)

Compare me to another `RemoteCacheObserver`.

def __hash__(self): (source)

Generate a hash unique to all `RemoteCacheObserver`s for this broker/perspective/cached triplet

def __init__(self, broker, cached, perspective): (source)

(internal) Initialize me.

Parameters
broker | a `pb.Broker` instance.
cached | a `Cacheable` instance that this `RemoteCacheObserver` corresponds to.
perspective | a reference to the perspective who is observing this.

def __repr__(self) -> `str`: (source)

Undocumented

def callRemote(self, _name, *args, **kw): (source)

(internal) action method.

def remoteMethod(self, key): (source)

Get a `pb.RemoteMethod` for this key.

broker = (source)

Undocumented

cached = (source)

Undocumented

perspective = (source)

Undocumented