Dredis.Extensions.Storage.Postgres 1.0.0

dotnet add package Dredis.Extensions.Storage.Postgres --version 1.0.0
                    
NuGet\Install-Package Dredis.Extensions.Storage.Postgres -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="Dredis.Extensions.Storage.Postgres" Version="1.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Dredis.Extensions.Storage.Postgres" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="Dredis.Extensions.Storage.Postgres" />
                    
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 Dredis.Extensions.Storage.Postgres --version 1.0.0
                    
#r "nuget: Dredis.Extensions.Storage.Postgres, 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 Dredis.Extensions.Storage.Postgres@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=Dredis.Extensions.Storage.Postgres&version=1.0.0
                    
Install as a Cake Addin
#tool nuget:?package=Dredis.Extensions.Storage.Postgres&version=1.0.0
                    
Install as a Cake Tool

Dredis.Extensions.Storage.Postgres

A PostgreSQL key-value store implementation for Dredis (https://github.com/miserix13/Dredis)

Current implementation scope

The current PostgreSQL-backed milestone covers the full Dredis.Abstractions.Storage.IKeyValueStore contract, including the core string surface plus hashes, lists, sets, sorted sets, JSON, stream, vector, probabilistic, and time-series operations:

  • GetAsync
  • SetAsync
  • GetManyAsync
  • SetManyAsync
  • DeleteAsync
  • ExistsAsync
  • IncrByAsync
  • ExpireAsync
  • PExpireAsync
  • TtlAsync
  • PttlAsync
  • CleanUpExpiredKeysAsync
  • HashSetAsync
  • HashGetAsync
  • HashDeleteAsync
  • HashGetAllAsync
  • ListPushAsync
  • ListPopAsync
  • ListRangeAsync
  • ListLengthAsync
  • ListIndexAsync
  • ListSetAsync
  • ListTrimAsync
  • SetAddAsync
  • SetRemoveAsync
  • SetMembersAsync
  • SetCardinalityAsync
  • SortedSetAddAsync
  • SortedSetRemoveAsync
  • SortedSetRangeAsync
  • SortedSetCardinalityAsync
  • SortedSetScoreAsync
  • SortedSetRangeByScoreAsync
  • SortedSetIncrementAsync
  • SortedSetCountByScoreAsync
  • SortedSetRankAsync
  • SortedSetReverseRankAsync
  • SortedSetRemoveRangeByScoreAsync
  • JsonSetAsync
  • JsonGetAsync
  • JsonDelAsync
  • JsonTypeAsync
  • JsonStrlenAsync
  • JsonArrlenAsync
  • JsonArrappendAsync
  • JsonArrindexAsync
  • JsonArrinsertAsync
  • JsonArrremAsync
  • JsonArrtrimAsync
  • JsonMgetAsync
  • StreamAddAsync
  • StreamDeleteAsync
  • StreamLengthAsync
  • StreamLastIdAsync
  • StreamReadAsync
  • StreamRangeAsync
  • StreamRangeReverseAsync
  • StreamTrimAsync
  • StreamInfoAsync
  • StreamSetIdAsync
  • StreamGroupCreateAsync
  • StreamGroupDestroyAsync
  • StreamGroupSetIdAsync
  • StreamGroupDelConsumerAsync
  • StreamGroupReadAsync
  • StreamAckAsync
  • StreamPendingAsync
  • StreamClaimAsync
  • StreamGroupsInfoAsync
  • StreamConsumersInfoAsync
  • VectorSetAsync
  • VectorGetAsync
  • VectorSizeAsync
  • VectorSimilarityAsync
  • VectorDeleteAsync
  • VectorSearchAsync
  • BloomReserveAsync
  • BloomAddAsync
  • BloomMAddAsync
  • BloomExistsAsync
  • BloomMExistsAsync
  • BloomInfoAsync
  • CuckooReserveAsync
  • CuckooAddAsync
  • CuckooAddNxAsync
  • CuckooExistsAsync
  • CuckooDeleteAsync
  • CuckooCountAsync
  • CuckooInfoAsync
  • HyperLogLogAddAsync
  • HyperLogLogCountAsync
  • HyperLogLogMergeAsync
  • TDigestCreateAsync
  • TDigestResetAsync
  • TDigestAddAsync
  • TDigestQuantileAsync
  • TDigestCdfAsync
  • TDigestRankAsync
  • TDigestRevRankAsync
  • TDigestByRankAsync
  • TDigestByRevRankAsync
  • TDigestTrimmedMeanAsync
  • TDigestMinAsync
  • TDigestMaxAsync
  • TDigestInfoAsync
  • TopKReserveAsync
  • TopKAddAsync
  • TopKIncrByAsync
  • TopKQueryAsync
  • TopKCountAsync
  • TopKListAsync
  • TopKInfoAsync
  • TimeSeriesCreateAsync
  • TimeSeriesAddAsync
  • TimeSeriesIncrementByAsync
  • TimeSeriesGetAsync
  • TimeSeriesRangeAsync
  • TimeSeriesDeleteAsync
  • TimeSeriesInfoAsync
  • TimeSeriesMultiRangeAsync

Internally, the store now uses a shared key metadata table with kind, value, and expires_at columns, plus per-type child tables for hash fields, list items, set members, sorted-set members, stream entries/group state, and time-series samples. JSON documents, vectors, probabilistic structures, and time-series metadata are stored directly in the parent row payload, and streams persist their last-generated id in the parent row while entries, fields, groups, consumers, and pending metadata live in child tables. TTL is tracked on the parent key row and child rows are deleted through foreign-key cascades.

Probabilistic structures currently use exact persisted state to satisfy the upstream API without external PostgreSQL extensions: Bloom filters track exact membership, Cuckoo filters track exact per-item counts, HyperLogLog stores an exact distinct set, TDigest stores exact values, and TopK stores exact counts with deterministic top-k ordering.

Time series use parent-row JSON metadata for retention, duplicate policy, and labels, plus a sample child table keyed by timestamp. Range aggregation currently supports AVG, SUM, MIN, MAX, and COUNT, and multi-range filtering matches exact label pairs while omitting matching series that have no samples in the requested range.

Build and test

dotnet restore .\Dredis.Extensions.Storage.Postgres.slnx
dotnet build .\Dredis.Extensions.Storage.Postgres.slnx -c Release
dotnet test .\Dredis.Extensions.Storage.Postgres.slnx -c Release

The test project includes PostgreSQL integration coverage for the string, hash, list, set, sorted-set, JSON, stream, vector, probabilistic, and time-series slices. Set DREDIS_POSTGRES_TEST_CONNECTION_STRING to run those tests against a real PostgreSQL instance; otherwise the integration tests return early and the rest of the suite still runs.

Product 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
1.0.0 96 4/18/2026