FarNet.Redis
0.8.0
Prefix Reserved
See the version list below for details.
dotnet add package FarNet.Redis --version 0.8.0
NuGet\Install-Package FarNet.Redis -Version 0.8.0
<PackageReference Include="FarNet.Redis" Version="0.8.0" />
paket add FarNet.Redis --version 0.8.0
#r "nuget: FarNet.Redis, 0.8.0"
// Install FarNet.Redis as a Cake Addin #addin nuget:?package=FarNet.Redis&version=0.8.0 // Install FarNet.Redis as a Cake Tool #tool nuget:?package=FarNet.Redis&version=0.8.0
FarNet.Redis
StackExchange.Redis PowerShell module and FarNet library
The module provides PowerShell friendly wrappers for basic Redis types and
operations. For not yet implemented or advanced operations (like getting
byte[]
data) use SERedis API methods directly, see examples in tests.
Redis keys, output simple 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 connection to local servers, consider using 127.0.0.1
instead of localhost
in configuration strings.
Garnet supports the only database (0), see #61.
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 is not yet stabilized, 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.12.0 | 34 | 11/1/2024 |
0.11.0 | 36 | 10/31/2024 |
0.10.4 | 65 | 10/28/2024 |
0.10.3 | 73 | 10/26/2024 |
0.10.2 | 81 | 10/24/2024 |
0.10.1 | 120 | 10/19/2024 |
0.10.0 | 85 | 10/17/2024 |
0.9.0 | 72 | 10/15/2024 |
0.8.0 | 94 | 10/13/2024 |
0.7.11 | 82 | 10/5/2024 |
0.7.10 | 136 | 8/27/2024 |
0.7.9 | 124 | 6/27/2024 |
0.7.8 | 100 | 6/24/2024 |
0.7.7 | 119 | 5/17/2024 |
0.7.6 | 107 | 5/15/2024 |
0.7.5 | 84 | 5/12/2024 |
0.7.4 | 105 | 5/9/2024 |
0.7.3 | 94 | 5/2/2024 |
0.7.2 | 114 | 4/29/2024 |
0.7.1 | 106 | 4/28/2024 |
0.7.0 | 109 | 4/26/2024 |
0.6.1 | 106 | 4/24/2024 |
0.6.0 | 106 | 4/23/2024 |
0.5.3 | 108 | 4/21/2024 |
0.5.2 | 109 | 4/20/2024 |
0.5.1 | 142 | 4/16/2024 |
0.5.0 | 189 | 4/15/2024 |
0.4.0 | 194 | 4/14/2024 |
0.3.0 | 187 | 4/13/2024 |
0.2.0 | 184 | 4/8/2024 |
0.1.0 | 179 | 4/7/2024 |
0.0.3 | 172 | 4/6/2024 |
0.0.2 | 198 | 4/6/2024 |
0.0.1 | 202 | 4/6/2024 |