Skip to main content

A small production ready client library that emulates redis and used gRPC for communication

Project description


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.2

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 redisgrpc-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.


.

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

redisgrpc-0.3.tar.gz (6.6 kB view details)

Uploaded Source

Built Distribution

redisgrpc-0.3-py3-none-any.whl (7.7 kB view details)

Uploaded Python 3

File details

Details for the file redisgrpc-0.3.tar.gz.

File metadata

  • Download URL: redisgrpc-0.3.tar.gz
  • Upload date:
  • Size: 6.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.5

File hashes

Hashes for redisgrpc-0.3.tar.gz
Algorithm Hash digest
SHA256 f19915101938dadb0800d096a3f816ecc69b5c8500d4febef74672fa3564a77d
MD5 c52bc175e597cc99681c1e2d1f1dbc5d
BLAKE2b-256 5c94c4c3b0e2a86d89d65a62a63b2d2bc0ff3fa089028c032610a2338ddea002

See more details on using hashes here.

File details

Details for the file redisgrpc-0.3-py3-none-any.whl.

File metadata

  • Download URL: redisgrpc-0.3-py3-none-any.whl
  • Upload date:
  • Size: 7.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.5

File hashes

Hashes for redisgrpc-0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 6c329c7cd21a7dc827e46e5746b994336ee0a9b9ab63c4f559f13088a22841ee
MD5 39cfc1958fd20ad0b0d5592dafe3b07d
BLAKE2b-256 c2e4e44e0e15cd913e6c25e95d2f3e6503b5bb50f2229e67d46e8148a6456b90

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page