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.3
- Add gevent patch all.
- Force item key to str format.
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.3.tar.gz
(6.2 kB
view details)
Built Distribution
File details
Details for the file zencache-0.1.3.tar.gz
.
File metadata
- Download URL: zencache-0.1.3.tar.gz
- Upload date:
- Size: 6.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 90a02350265db5e62e77f0a4dc2af27399d7495c83cbe2b2ae225c74a0d05897 |
|
MD5 | 52b0b33dcd805ba4a76fd04d41426948 |
|
BLAKE2b-256 | a259f17888101ffe8e0f7a6b98323aaad3551a1c3e2a61a3338b3a2933556f18 |
File details
Details for the file zencache-0.1.3-py3-none-any.whl
.
File metadata
- Download URL: zencache-0.1.3-py3-none-any.whl
- Upload date:
- Size: 5.9 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 | 97124b4499b56c59ac0065e4d857cf57e1643484982473b700a61ca78ccc1d43 |
|
MD5 | 18f5deeadd8301a9da993d5db00a45f3 |
|
BLAKE2b-256 | 2247213f7dd61682a1ddd2b5cccf5671b4a8aa5d7df471e0670f6c87d4cc7109 |