Redis json stroage.
Project description
rjs
===
.. image:: https://travis-ci.org/appstore-zencore/rjs.svg?branch=master
:target: https://travis-ci.org/appstore-zencore/rjs
Reids json storage.
Install
-------
::
pip install rjs
Class & Methods
-----
1. rjs.JsonStorage
a. update
b. get
c. delete
d. delete_field
Example
-----
::
from rjs import JsonStorage
connection = make_redis_connect(config)
storage = JsonStorage(connection)
data1 = {
"a": 1,
"b": 2,
}
storage.update(data1)
data2 = {
"b": 3,
"c": 4,
}
storage.update(data2)
data3 = storage.get(key)
===
.. image:: https://travis-ci.org/appstore-zencore/rjs.svg?branch=master
:target: https://travis-ci.org/appstore-zencore/rjs
Reids json storage.
Install
-------
::
pip install rjs
Class & Methods
-----
1. rjs.JsonStorage
a. update
b. get
c. delete
d. delete_field
Example
-----
::
from rjs import JsonStorage
connection = make_redis_connect(config)
storage = JsonStorage(connection)
data1 = {
"a": 1,
"b": 2,
}
storage.update(data1)
data2 = {
"b": 3,
"c": 4,
}
storage.update(data2)
data3 = storage.get(key)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
rjs-0.1.1.tar.gz
(2.3 kB
view hashes)