vaurien-relay
文件大小: unknow
源码售价: 5 个金币 积分规则     积分充值
资源说明:
Vaurien RPC relay
##################

Expose a way to control multiple vaurien proxies with a single 0mq interface.

Here is how, programatically, yoyu can use this "relay"::

    from vaurienrelay import RPCRelay

    relay = RPCRelay('tcp://socket', instances={
        'db1': 'host:port',
        'memcache2': 'host:port',
    })
    relay.start()

Then, on the client side, you can call the methods you want, as follows::

    from zerorpc import Client

    c = Client('tcp://socket')
    c.set_hander('db1', 'blackout')

And that's it!

本源码包内暂不包含可直接显示的源代码文件,请下载源码包。