| Crates.io | asimov-valkey-module |
| lib.rs | asimov-valkey-module |
| version | 0.1.0 |
| created_at | 2025-11-06 07:11:30.188876+00 |
| updated_at | 2025-11-06 07:11:30.188876+00 |
| description | ASIMOV module. |
| homepage | https://github.com/asimov-modules |
| repository | https://github.com/asimov-modules/asimov-valkey-module |
| max_upload_size | |
| id | 1919179 |
| size | 56,870 |
ASIMOV module for Valkey / Redis database integration.
redis] crate.env configuration with ASIMOV Module utilitiesredis://localhost:6379/0)asimov module install valkey -v
cargo install asimov-valkey-module
List keys or JSON values stored in Valkey.
# Output stored values (JSONL)
asimov-valkey-cataloger --output jsonl
# Output only keys / URLs
asimov-valkey-cataloger --output url
Subscribe to one or more Valkey channels and print incoming messages.
# Output messages as JSON lines
asimov-valkey-reader --output jsonl asimov:events
# Extract only "@id" URLs from JSON messages
asimov-valkey-reader --output url asimov:events
Publish messages from stdin to Valkey Pub/Sub channels.
# Publish JSON objects
echo '{"@id":"https://example.com/r/1","k":"v"}' \
| asimov-valkey-writer asimov:events
# Publish and also echo to stdout
echo '{"msg":"test"}' \
| asimov-valkey-writer --union asimov:events
You can configure the Valkey connection via environment variable or .env file.
.env file:ASIMOV_VALKEY_URL=redis://127.0.0.1:6379/1
ASIMOV_VALKEY_URL="redis://127.0.0.1:6379/1" asimov-valkey-cataloger
| Binary | Description |
|---|---|
asimov-valkey-cataloger |
Scans Valkey and prints stored keys or values |
asimov-valkey-reader |
Subscribes to Valkey channels and prints messages |
asimov-valkey-writer |
Publishes messages from stdin to Valkey channels |
asimov-valkey-catalogerUsage: asimov-valkey-cataloger [OPTIONS]
Options:
-d, --debug Enable debugging output
--license Show license information
-v, --verbose... Enable verbose output (may be repeated for more verbosity)
-V, --version Print version information
-o, --output <FORMAT> Specify the output format [jsonl, url] [default: jsonl] [possible values: jsonl, url]
-h, --help Print help
asimov-valkey-readerUsage: asimov-valkey-reader [OPTIONS] <CHANNELS>...
Arguments:
<CHANNELS>... Channels to subscribe to
Options:
-d, --debug Enable debugging output
--license Show license information
-v, --verbose... Enable verbose output (may be repeated for more verbosity)
-V, --version Print version information
-o, --output <FORMAT> Specify the output format [jsonl, url] [default: jsonl] [possible values: jsonl, url]
-h, --help Print help
asimov-valkey-writerUsage: asimov-valkey-writer [OPTIONS] <CHANNELS>...
Arguments:
<CHANNELS>... Channels to publish to
Options:
-U, --union Copy stdin to stdout
-d, --debug Enable debugging output
--license Show license information
-v, --verbose... Enable verbose output (repeat for more verbosity)
-V, --version Print version information
-h, --help Print help
git clone https://github.com/asimov-modules/asimov-valkey-module.git