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.2.tar.gz
(2.4 kB
view details)
File details
Details for the file rjs-0.1.2.tar.gz
.
File metadata
- Download URL: rjs-0.1.2.tar.gz
- Upload date:
- Size: 2.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4fef714828d35383ed5c114879cdf4bf5c12e890e834a341bcb4bf96ac73e16b |
|
MD5 | 18a6ad63196ac1294dc00362ae8b5549 |
|
BLAKE2b-256 | 882fb1faffbfb22713e9aaf5dcd983e3a29154d10ebd34afdf9ce9a31878771f |