forked from yonghee12/direct-redis
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
46 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
name: Black | ||
|
||
on: [push] | ||
jobs: | ||
linter_name: | ||
name: runner / black formatter | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: rickstaa/action-black@v1 | ||
with: | ||
black_args: ". --check" |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,26 @@ | ||
""" | ||
DirectRedis package for enhanced Redis interactions with automatic serialization. | ||
This package provides the DirectRedis class, which extends the functionality of | ||
the standard Redis client to automatically handle serialization and deserialization | ||
of Python objects. It allows for easier storage and retrieval of complex data types | ||
in Redis, including custom Python objects, without manual encoding and decoding. | ||
The main class provided by this package is: | ||
- DirectRedis: An extended Redis client with automatic serialization capabilities. | ||
Usage: | ||
from direct_redis import DirectRedis | ||
# Create a DirectRedis instance | ||
dr = DirectRedis(host='localhost', port=6379, db=0) | ||
# Use it like a regular Redis client, but with automatic serialization | ||
dr.set('key', {'complex': 'data'}) | ||
data = dr.get('key') # Returns the deserialized Python dictionary | ||
This package simplifies Redis operations when working with complex Python data structures, | ||
making it easier to integrate Redis into Python applications that deal with non-string data. | ||
""" | ||
|
||
from .direct_redis import DirectRedis |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters