Fast, type-safe, custom Namespaces for local Redis
Project description
Firedis
pip install firedis
A faster, type-safe Python client for your local Redis server. Optimized for ultra high frequency, synchronous transactions over a Unix socket, or localhost
130,000+ synchronous transactions per second while serializing/deserializing any Python object in/out of Redis.
import datetime as dt
from firedis import Firedis, Namespace
class MyRedis(Firedis):
login_times: Namespace[dt.datetime]
numbers: Namespace[int | float]
documents: Namespace[dict[str, str]]
r = MyRedis() # Takes same arguments as `redis.Redis()`
r.login_times.set("Peter", dt.datetime.now())
r.numbers.set('foo', 1)
r.documents.set('bar', {'a': 'A', 'b': 'B'})
Static Type Safety, and direct storage of Python objects
- ...
Performance
- ...
Mirrors redis.Redis()
API
- ...
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
firedis-0.0.1.tar.gz
(9.2 kB
view hashes)
Built Distribution
Close
Hashes for firedis-0.0.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b8a881187e5d3bcc3f53b7d12d3c7ea2944f2cc24b9139ed1cdd6fcf88577e9d |
|
MD5 | 1a7403e64b306e8475f37c65ca1468be |
|
BLAKE2b-256 | ce1b400adb823b487468b5dd0dcfe765751f00b633f3caf4a93a7b147038ab58 |