Pure memory cache powered by Open RPC.
Project description
zencache
Pure memory cache powered by orpc.
Install
pip install zencache
Example server config: zencached-config.yml
daemon: true
pidfile: zencached.pid
loglevel: INFO
logfile: zencached.log
server:
listen: 0.0.0.0
port: 6779
backlog: 8192
buffer_size: 65536
rfile_buffer_size: 65536
wfile_buffer_size: 65536
max_request_size: 4194304
authentication:
enable: true
users:
app01: spnPF3HzY975GJYC
app02: ZWRVfHrK8QkQoOnQ
app03: xuFTlTy9i6KCfncp
Example client usage
from orpc_client import OrpcConnectionPool
zencached_client_pool = OrpcConnectionPool(10, kwargs={
"host": "127.0.0.1",
"port": 6779,
"username": "app01",
"password": "spnPF3HzY975GJYC",
"login_event": "zencache.login",
"auto_login": True,
})
with zencached_client_pool.get_session() as session:
session.zencache.set('a', 'a')
assert session.zencache.get('a') == 'a'
Releases
v0.1.0
- First release.
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
zencache-0.1.0.tar.gz
(5.6 kB
view details)
Built Distribution
File details
Details for the file zencache-0.1.0.tar.gz
.
File metadata
- Download URL: zencache-0.1.0.tar.gz
- Upload date:
- Size: 5.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 48fbed75af1bfa739054ea65325aa88f7df461f797f52af4643ca2603bd3d99a |
|
MD5 | 2ad188ca1a6ae14e7bd7ed120702714c |
|
BLAKE2b-256 | 880265e9bd2d87d8ba2da0c8776da7bc0d2ffa243162e50871683e13db723641 |
File details
Details for the file zencache-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: zencache-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d78c91266a5427de6e45a6952636c854f110c95b443f8ceba40d8f39edd1a3dd |
|
MD5 | b67a0bb8cfa34617ce94cbf9de3a2105 |
|
BLAKE2b-256 | eee418f519765ff28539b406b5af1fda8a3e28ea5b298565bc2c90272c386d33 |