A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/seppo0010/rlite-py below:

seppo0010/rlite-py: python bindings for rlite

Python bindings for rlite. For more information about rlite, go to rlite repository

>>> import hirlite
>>> rlite = hirlite.Rlite()
>>> rlite.command('set', 'key', 'value')
True
>>> rlite.command('get', 'key')
'value'
>>> rlite = hirlite.Rlite(encoding='utf8')
>>> rlite.command('set', 'key', 'value')
True
>>> rlite.command('get', 'key')
u'value'
>>> rlite = hirlite.Rlite(path='mydb.rld')
>>> rlite.command('set', 'key', 'value')
True
>>> rlite = hirlite.Rlite(path='mydb.rld')
>>> rlite.command('get', 'key')
'value'
>>> subscriber = hirlite.Rlite(path='mydb.rld')
>>> subscriber.command('subscribe', 'channel', 'channel2')
['subscribe', 'channel', 1L]
>>> subscriber.command('__rlite_poll')
['subscribe', 'channel2', 2L]
>>> subscriber.command('__rlite_poll')
>>> publisher = hirlite.Rlite(path='mydb.rld')
>>> publisher.command('publish', 'channel', 'hello world')
1L
>>> subscriber.command('__rlite_poll')
['message', 'channel', 'hello world']
>>> subscriber.command('__rlite_poll')
>>>

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4