Redis client that runs as a unique global object within the library and supports asynchronous calls
Project description
Asynchronous GLObal REDis Interface
Implements a small interface around the basic redis.Redis() client meant to be shared
across different files in the same process that need access to the same redis instance.
This implementation has two major goals:
- Allow sharing the same Client object across different files without having to pass the object itself each time.
- Allow asynchronous calls to the redis interface, specially when submitting data to avoid any disruption in running code
Usage
The usage of this library is straight forward and it implements the basic redis.Redis() methods:
from glored import redis_client
import time
# Synchronous
redis_client.set('some_key', 'some_value')
result = redis_client.get('some_key')
# Asynchronous
redis_client.asynchronous.set('some_key', 'other_value')
time.sleep(1)
result = redis_client.get('some_key')
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file glored-0.1.1.tar.gz.
File metadata
- Download URL: glored-0.1.1.tar.gz
- Upload date:
- Size: 4.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
474685384c54fe85477f1c5786807d7cf2586610540a2f3e09fafd95c1eea115
|
|
| MD5 |
e0335cf04be4fcc5494b613fb9f47cd9
|
|
| BLAKE2b-256 |
dd61691f506a856b57ecd3b23f3996c445c69bdb5aceb39b91d8af3e3d1ba48f
|
File details
Details for the file glored-0.1.1-py3-none-any.whl.
File metadata
- Download URL: glored-0.1.1-py3-none-any.whl
- Upload date:
- Size: 4.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
311aaa67f45a27c9e4b59cd0e935977b3781627efa6e42162e6945ce8aee86a1
|
|
| MD5 |
ae2785350879939b714311c48d48b795
|
|
| BLAKE2b-256 |
8717930f48fbe30145152b9d5a7a22e9d35339ad2c34ef50e3efa0dd1341e5a3
|