Redis gRPC ⚡️
by Gautam Sharma https://gsharma.dev
Redis gRPC ⚡️ is a client library that emulates Redis-like features by leveraging gRPC communication. It provides a lightweight and efficient way to interact with a Redis-like server implemented using gRPC, offering developers a fast and seamless experience.
Features
- Emulates Redis-like functionality
- Utilizes gRPC for communication
- Written in Python for ease of use and integration
- Lightweight and efficient
Installation
To install the redisgrpc Python client library, you can use pip:
pip install redisgrpc==0.4
Usage
Here's an example demonstrating how to use the redisgrpc client library:
from __future__ import print_function
import logging
from redisgrpc import redisgrpc as rg
def run():
# Initialize the Client with the server port
c = rg.Client(50051)
# Initialize the connection
c.init_connection()
# Perform some Redis-like operations
for idx in range(1, 10):
k = input("Set Key: ")
v = input("Set Value: ")
c.set(k, v)
# Get the cached value back
cached_val = c.get(k)
print("Cached value of key {} is {}".format(k, cached_val))
if __name__ == "__main__":
# Configure logging
logging.basicConfig()
# Run the example
run()
About
The redis-grpc-server is a library written purely in C++, utilizing gRPC as its communication layer. Despite its small size, this library is powerful and suitable for use in production environments. The aim is to provide developers with the best possible experience while maintaining extreme speed and efficiency.
Contributing
Contributions to redisgrpc are welcome! Whether it's reporting bugs, suggesting new features, or contributing code, your input is valuable.
License
This project is licensed under the MIT License - see the LICENSE file for details.
.
Release files for redisgrpc 0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| redisgrpc-0.4.tar.gz | 6.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| redisgrpc-0.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 14.3 kB
Release files / redisgrpc-0.4.tar.gz
| Download URL | redisgrpc-0.4.tar.gz |
|---|---|
| Size | 6.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e7fa15caa70cae5b9c9bf586dc81fe036e83c98d83f09e4db3b6d3bb12ea532a
|
|
BLAKE2b-256 checksum How to use checksums |
45a787f77c60defbd5b4a872526c8380027f50937cd6db6f18fc29a0e4e1ad5d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.11.5
|
Release files / redisgrpc-0.4-py3-none-any.whl
| Download URL | redisgrpc-0.4-py3-none-any.whl |
|---|---|
| Size | 7.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e82bd360633027c7ac0f046a216cefac637fb2057182e5a8742edb94c9449ff5
|
|
BLAKE2b-256 checksum How to use checksums |
c6a8b4ebd3de179a12107d95dd01653d4c25642ebd50aea387067ff1bf2ef6ae
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.11.5
|