FarNet.Redis
0.6.1
Prefix Reserved
See the version list below for details.
dotnet add package FarNet.Redis --version 0.6.1
NuGet\Install-Package FarNet.Redis -Version 0.6.1
<PackageReference Include="FarNet.Redis" Version="0.6.1" />
paket add FarNet.Redis --version 0.6.1
#r "nuget: FarNet.Redis, 0.6.1"
// Install FarNet.Redis as a Cake Addin #addin nuget:?package=FarNet.Redis&version=0.6.1 // Install FarNet.Redis as a Cake Tool #tool nuget:?package=FarNet.Redis&version=0.6.1
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.
The NuGet package is installed to %FARHOME%\FarNet\Lib\FarNet.Redis
.
Included assets:
StackExchange.Redis.dll
,FarNet.Redis.dll
General purpose Redis client and helper assemblies.
They are designed for using in C#, F#, PowerShell.FarNet.Redis.psd1
,PS.FarNet.Redis.dll
PowerShell module files.
FarNet.Redis.ini
F# scripts configuration,
FarNet.FSharpFar
.
The PowerShell module may be imported as:
Import-Module $env:FARHOME\FarNet\Lib\FarNet.Redis
Expose the module as a symbolic link or junction
Consider exposing this module, so that you can:
Import-Module FarNet.Redis
(1) Choose one of the module directories, see $env:PSModulePath
.
(2) Change to the selected directory and create the symbolic link
New-Item FarNet.Redis -ItemType SymbolicLink -Value $env:FARHOME\FarNet\Lib\FarNet.Redis
(3) Alternatively, you may create the similar folder junction point in Far
Manager using AltF6
.
Then you may update the FarNet package with new versions. The symbolic link or junction do not have to be updated, they point to the same location.
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 simple console project like GarnetServer to run your own server.
Notes
Open-Redis 127.0.0.1:3278
seems to work faster than using localhost
.
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 | 77 | 10/31/2024 |
0.10.4 | 75 | 10/28/2024 |
0.10.3 | 80 | 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 |