OptunaSharp.Storage.Redis 1.0.0

dotnet add package OptunaSharp.Storage.Redis --version 1.0.0
                    
NuGet\Install-Package OptunaSharp.Storage.Redis -Version 1.0.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="OptunaSharp.Storage.Redis" Version="1.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="OptunaSharp.Storage.Redis" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="OptunaSharp.Storage.Redis" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add OptunaSharp.Storage.Redis --version 1.0.0
                    
#r "nuget: OptunaSharp.Storage.Redis, 1.0.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package OptunaSharp.Storage.Redis@1.0.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=OptunaSharp.Storage.Redis&version=1.0.0
                    
Install as a Cake Addin
#tool nuget:?package=OptunaSharp.Storage.Redis&version=1.0.0
                    
Install as a Cake Tool

OptunaSharp.Storage.Redis

Shared, client-agnostic primitives for the OptunaSharp Redis journal backends — with no Redis client dependency of its own. Part of OptunaSharp (a .NET port of Optuna) and the SciSharp STACK.

What's here

  • RedisEndpoint + RedisUrl.Parse(url) — parse a Redis URL (redis://, rediss:// TLS, unix://) exactly as redis-py 8's Redis.from_url parses it: user information, host, port, the path or ?db= database, and the connection options (socket_timeout / socket_connect_timeout, 5 seconds by default, client_name, lib_name, protocol, and the ssl_* TLS settings), with redis-py's error kinds and messages for what it rejects. Each backend builds its own client from this neutral endpoint.
  • RedisJournalProtocol — the Redis key layout ({prefix}:log_number, {prefix}:log:{n}, {prefix}:snapshot), the atomic-append Lua script, and the experimental-warning text.

Sharing these constants (rather than an implementation abstraction) is exactly what keeps the three independent client backends byte-identical against the same Redis, and byte-compatible with Python Optuna's JournalRedisBackend:

  • OptunaSharp.Storage.StackExchange.Redis — on StackExchange.Redis (the de-facto standard, MIT)
  • OptunaSharp.Storage.NRedisStack — on NRedisStack (Redis's official client, MIT)
  • OptunaSharp.Storage.ServiceStack.Redis — on ServiceStack.Redis (commercial license)

Reference one of those to actually use Redis storage; this package holds only the shared protocol.

License

MIT © SciSharp STACK Team.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (3)

Showing the top 3 NuGet packages that depend on OptunaSharp.Storage.Redis:

Package Downloads
OptunaSharp.Storage.ServiceStack.Redis

Redis journal-log backend for OptunaSharp on ServiceStack.Redis. ServiceStackJournalRedisBackend persists an Optuna study's operation log to a Redis server (standalone or cluster), byte-compatible with Python Optuna and the sibling StackExchange/NRedisStack backends. NOTE: ServiceStack.Redis is COMMERCIALLY licensed (its free tier is request-quota-limited) — see the package README. Part of the SciSharp STACK.

OptunaSharp.Storage.NRedisStack

Redis journal-log backend for OptunaSharp on NRedisStack — Redis's official .NET client. NRedisStackJournalRedisBackend persists an Optuna study's operation log to a Redis server (standalone or cluster), byte-compatible with Python Optuna and the sibling StackExchange/ServiceStack backends. NRedisStack layers the Redis Stack modules on StackExchange.Redis; a journal needs only plain GET/SET/INCR/EVAL, served via the underlying IDatabase. Part of the SciSharp STACK.

OptunaSharp.Storage.StackExchange.Redis

Redis journal-log backend for OptunaSharp on StackExchange.Redis — the de-facto-standard .NET Redis client. StackExchangeJournalRedisBackend persists an Optuna study's operation log to a Redis server (standalone or cluster), byte-compatible with Python Optuna's optuna.storages.journal.JournalRedisBackend. Part of the SciSharp STACK.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.0 114 11/8/2026