Redis json stroage.
Project description
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)
===
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.0.tar.gz
(2.2 kB
view details)
File details
Details for the file rjs-0.1.0.tar.gz
.
File metadata
- Download URL: rjs-0.1.0.tar.gz
- Upload date:
- Size: 2.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5c3f56e0fe284abba3293ea5a2a5bcaf3af3bcbf8c5c0568cb107120fe0e2fe8 |
|
MD5 | c38d6d08894302cc13c520bb6ba309d1 |
|
BLAKE2b-256 | 70cb98e4c7c8272c92b7e9dda65659a59b685e2e8155e3fef2c2836f97554882 |