AutoGuru.KeyValuePush.Redis
4.0.0
dotnet tool install --global AutoGuru.KeyValuePush.Redis --version 4.0.0
dotnet new tool-manifest
dotnet tool install --local AutoGuru.KeyValuePush.Redis --version 4.0.0
#tool dotnet:?package=AutoGuru.KeyValuePush.Redis&version=4.0.0
nuke :add-package AutoGuru.KeyValuePush.Redis --version 4.0.0
kv-push
A .NET global tool/s that can push key-value data to another location.
How it works
Iterates files in the given path, building a dictionary where keys are file names (without extensions) and values are the file's contents.
Note: You can optionally instruct JSON files be recursed for KVs themselves. They should contain an object of string properties and each will be added to the dictionary being built.
Finally, the dictionary is pushed to its final destination depending on what implementation you use.
Implementations
kv-push-redis
Installation
Requires the .NET 10 runtime or later.
> dotnet tool install AutoGuru.KeyValuePush.Redis -g
Usage
> kv-push-redis [options] <Path> <RedisConfiguration>
Arguments:
Path The path to source data from.
RedisConfiguration The redis configuration to connect to a redis instance with.
Options:
-d|--db The redis db to use (if any).
-sp|--search-pattern The search string to match against the names of files in path. This parameter can
contain a combination of valid literal path and wildcard (* and ?) characters, but it
doesn't support regular expressions. The default is: "*"
-so|--search-option One of the enumeration values that specifies whether the search operation should
include all subdirectories or only the current directory. The default is:
TopDirectoryOnly
-rj|--recurse-into-json-files Whether to recurse into json files. If true, json files are considered to have
key-value pairs in them too (e.g. a top-level object with a single level of kvps) and
these will be crawled, extracted and pushed individually. The default is: false.
-?|-h|--help Show help information.
Development
> dotnet build AutoGuru.KeyValuePush.slnx
> dotnet test --solution AutoGuru.KeyValuePush.slnx
The SDK is pinned in global.json, package versions live in Directory.Packages.props,
and tests run on xUnit v3 via the Microsoft Testing Platform.
To release, bump <Version> in src/KeyValuePush.Redis/AutoGuru.KeyValuePush.Redis.csproj;
the CI/CD workflow publishes to NuGet on merge to main.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
This package has no dependencies.