Metadata-Version: 2.1
Name: glored
Version: 0.0.4
Summary: Redis client that runs as a unique global object within the library and supports asynchronous calls
Home-page: https://github.com/perrytec/glored.git
Author: perry
Author-email: noemail@example.com
Classifier: Programming Language :: Python :: 3
Classifier: Operating System :: OS Independent
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE

# 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:

```python
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')
```
