Pulsar-dsΒΆ

The code for this example is located in the examples.pulsards.manage module.

Pulsar key-value store server. To run the server type:

python manage.py

Open a new shell and launch python and type:

>>> from pulsar.apps.data import create_store
>>> store = create_store('pulsar://localhost:6410')
>>> client = store.client()
>>> client.ping()
True
>>> client.echo('Hello!')
b'Hello!'
>>> client.set('bla', 'foo')
True
>>> client.get('bla')
b'foo'
>>> client.dbsize()
1