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:
pip install redislightning==0.1
Usage
Here's an example demonstrating how to use the redislightning client library:
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 file for details.
.
Release files for redislightning 0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| redislightning-0.2.tar.gz | 6.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| redislightning-0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 15.1 kB
Release files / redislightning-0.2.tar.gz
| Download URL | redislightning-0.2.tar.gz |
|---|---|
| Size | 6.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3ae77534ce235b60dffe34746611b40930c9e2b847aae2d43fb012080bf65cea
|
|
BLAKE2b-256 checksum How to use checksums |
6ab533ade4f863ef7f161b7e158ba57f6b791e4ca97f477ee6efbe084661eed9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.11.5
|
Release files / redislightning-0.2-py3-none-any.whl
| Download URL | redislightning-0.2-py3-none-any.whl |
|---|---|
| Size | 8.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
afce6c32fefce883107296720d68f0d1fda3fdd0a0aae9e434cdfb4100eab38e
|
|
BLAKE2b-256 checksum How to use checksums |
22ba2193e850c790b623055c32c58bc8cf7184187763dae349b7884328c6466e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.11.5
|