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.1.2.tar.gz
(7.3 kB
view hashes)
Built Distribution
Close
Hashes for firedis-0.1.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 88a2e6adb02d07eba60b6857ef156f3a467277ce616c9e384a0ed96b0f0ff489 |
|
MD5 | befc1740ef153cc0f3bc3509ce5d8ae7 |
|
BLAKE2b-256 | e8899a875360e46b260f6985408e0ae323a07be11b9eb53519a5e16b18a1a549 |