FarNet.Redis
0.14.0
Prefix Reserved
dotnet add package FarNet.Redis --version 0.14.0
NuGet\Install-Package FarNet.Redis -Version 0.14.0
<PackageReference Include="FarNet.Redis" Version="0.14.0" />
paket add FarNet.Redis --version 0.14.0
#r "nuget: FarNet.Redis, 0.14.0"
// Install FarNet.Redis as a Cake Addin #addin nuget:?package=FarNet.Redis&version=0.14.0 // Install FarNet.Redis as a Cake Tool #tool nuget:?package=FarNet.Redis&version=0.14.0
FarNet.Redis
StackExchange.Redis PowerShell module and FarNet library
The module provides PowerShell friendly wrappers for the basic SERedis API.
For not yet implemented or planned, e.g. getting byte[]
data or building
transactions, use SERedis API directly, see tests.
Redis keys, simple output values, and complex type items are strings.
Input values may be anything supported by SERedis, including byte[]
.
Packages:
- PowerShell 7.4 module, PSGallery FarNet.Redis
- FarNet library, NuGet FarNet.Redis
PowerShell module
You may install the PowerShell module by this command:
Install-Module -Name FarNet.Redis
Explore, see also about_FarNet.Redis.help.txt:
# import and get module commands
Import-Module -Name FarNet.Redis
Get-Command -Module FarNet.Redis
# get module and commands help
help about_FarNet.Redis
help Open-Redis
help Set-RedisString
help Get-RedisString
...
FarNet library
To install as the FarNet library FarNet.Redis
, follow these steps.
See PowerShell FarNet modules for details.
See also FarNet.RedisKit, the module for managing Redis data in Far Manager.
Examples
See tests for all examples.
PowerShell
Import-Module FarNet.Redis
$db = Open-Redis 127.0.0.1:3278
Set-RedisString test:key1 Hello
Get-RedisString test:key1
F#
open StackExchange.Redis
let db = DB.Open("127.0.0.1:3278")
db.StringSet("test:key1", "Hello")
db.StringGet("test:key1")
Garnet server
Microsoft.Garnet is the Redis like server, especially useful on Windows.
Use a tiny project like GarnetServer to build and run the server.
Or download ready to run binaries from Garnet Releases.
Known issues
For faster local connections, consider 127.0.0.1
instead of localhost
in configuration strings.
Garnet: The only database is 0, see #61. Other database indexes formally work but 0 is used.
Garnet: The same key may simultaneously exist as string and object, see #358.
Mind expected inconsistencies and not unique Search-RedisKey
results.
Garnet: Do not use saved checkpoints with different server versions, format may change, see FAQ.
To migrate data, use Export-Redis
, delete checkpoints, upgrade server, use Import-Redis
.
See also
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
0.14.0 | 72 | 11/14/2024 |
0.13.0 | 66 | 11/13/2024 |
0.12.0 | 78 | 11/1/2024 |
0.11.0 | 75 | 10/31/2024 |
0.10.4 | 73 | 10/28/2024 |
0.10.3 | 78 | 10/26/2024 |
0.10.2 | 89 | 10/24/2024 |
0.10.1 | 129 | 10/19/2024 |
0.10.0 | 93 | 10/17/2024 |
0.9.0 | 79 | 10/15/2024 |
0.8.0 | 102 | 10/13/2024 |
0.7.11 | 86 | 10/5/2024 |
0.7.10 | 138 | 8/27/2024 |
0.7.9 | 125 | 6/27/2024 |
0.7.8 | 101 | 6/24/2024 |
0.7.7 | 120 | 5/17/2024 |
0.7.6 | 108 | 5/15/2024 |
0.7.5 | 88 | 5/12/2024 |
0.7.4 | 106 | 5/9/2024 |
0.7.3 | 96 | 5/2/2024 |
0.7.2 | 115 | 4/29/2024 |
0.7.1 | 107 | 4/28/2024 |
0.7.0 | 111 | 4/26/2024 |
0.6.1 | 109 | 4/24/2024 |
0.6.0 | 108 | 4/23/2024 |
0.5.3 | 111 | 4/21/2024 |
0.5.2 | 113 | 4/20/2024 |
0.5.1 | 145 | 4/16/2024 |
0.5.0 | 191 | 4/15/2024 |
0.4.0 | 196 | 4/14/2024 |
0.3.0 | 189 | 4/13/2024 |
0.2.0 | 187 | 4/8/2024 |
0.1.0 | 181 | 4/7/2024 |
0.0.3 | 174 | 4/6/2024 |
0.0.2 | 200 | 4/6/2024 |
0.0.1 | 204 | 4/6/2024 |