Metadata-Version: 2.1
Name: redislightning
Version: 0.2
Summary: A small production ready client library that emulates redis and used gRPC for communication
Home-page: https://github.com/gautam-sharma1/redis-lightning
Author: Gautam Sharma
Author-email: gautamsharma2813@gmail.com
License: UNKNOWN
Keywords: redis,gRPC
Platform: UNKNOWN
Classifier: Intended Audience :: Developers
Classifier: Topic :: Software Development :: Build Tools
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: grpcio-tools

---

# RedisLightning 🔥

by Gautam Sharma http://gsharma.dev

RedisLightning 🔥 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 redislightning Python client library, you can use pip:

```bash
pip install redislightning==0.1
```

## Usage

Here's an example demonstrating how to use the redislightning client library:

```python
from __future__ import print_function
import logging
from redislightning import redislightning as rl


def run():
    # Initialize the Client with the server port
    c = rl.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 redislightning-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 redislightning 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](LICENSE) file for details.

---
.


