Skip to main content

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:

  1. Allow sharing the same Client object across different files without having to pass the object itself each time.
  2. 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')

Metadata

Release files for glored 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for glored 0.1.1
File Size Uploaded
glored-0.1.1.tar.gz 4.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for glored 0.1.1
File Interpreter ABI Platform
glored-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 9.3 kB

Release files / glored-0.1.1.tar.gz

Download URL glored-0.1.1.tar.gz
Size 4.3 kB
Tags Source
SHA-256 checksum
How to use checksums
474685384c54fe85477f1c5786807d7cf2586610540a2f3e09fafd95c1eea115
BLAKE2b-256 checksum
How to use checksums
dd61691f506a856b57ecd3b23f3996c445c69bdb5aceb39b91d8af3e3d1ba48f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.11.2

Release files / glored-0.1.1-py3-none-any.whl

Download URL glored-0.1.1-py3-none-any.whl
Size 4.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
311aaa67f45a27c9e4b59cd0e935977b3781627efa6e42162e6945ce8aee86a1
BLAKE2b-256 checksum
How to use checksums
8717930f48fbe30145152b9d5a7a22e9d35339ad2c34ef50e3efa0dd1341e5a3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.11.2

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page