feat: Add NetEvolve.Pulse.Redis with RedisIdempotencyStore#429
Open
feat: Add NetEvolve.Pulse.Redis with RedisIdempotencyStore#429
Conversation
5 tasks
Copilot
AI
changed the title
[WIP] Create NetEvolve.Pulse.Redis project with RedisIdempotencyStore
feat: Add NetEvolve.Pulse.Redis with RedisIdempotencyStore
Apr 18, 2026
Agent-Logs-Url: https://github.com/dailydevops/pulse/sessions/b31a0e70-a156-4233-a975-05a37b24f6ce Co-authored-by: samtrion <3283596+samtrion@users.noreply.github.com>
bef1ebe to
baee86c
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a Redis-backed idempotency provider using StackExchange.Redis atomic
SET NX EXoperations, eliminating the read-before-write round-trip inherent in SQL-based stores.New project:
NetEvolve.Pulse.RedisRedisIdempotencyKeyOptions—KeyPrefix("pulse:idempotency:"),TimeToLive(24h),Database(-1)RedisIdempotencyKeyOptionsValidator— rejectsTimeToLive <= Zeroand empty/whitespaceKeyPrefix; registered withValidateOnStart()RedisIdempotencyKeyOptionsConfiguration— binds fromPulse:Idempotency:Redisconfig section; gracefully no-ops whenIConfigurationis not registeredRedisIdempotencyStore : IIdempotencyStore— directly implementsIIdempotencyStore(bypasses theIIdempotencyKeyRepositorylayer);ExistsAsync→KeyExistsAsync;StoreAsync→StringSetAsync(..., When.NotExists), silently succeeds on duplicateAddRedisIdempotencyStore— replaces the defaultIIdempotencyStoreregistration withRedisIdempotencyStore(Scoped);IConnectionMultiplexermust be registered by the callerTest coverage
Unit tests cover constructor validation, argument guards,
ExistsAsynctrue/false propagation, andStoreAsyncno-throw on duplicate. Added<NoWarn>SER002;SER003;SER006</NoWarn>to the unit test project to suppress StackExchange.Redis experimental-API diagnostics emitted by the TUnit.Mocks source generator.