Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add the ability for remote keys to be rehydrated #115

Conversation

SeanFarrow
Copy link
Contributor

This PR add the ability to rehydrate a key from a remote store and implements Redis as a concrete example.

SeanFarrow and others added 30 commits January 31, 2023 14:41
…plementation and add these projects to the sln files.
…ing an ArgumentNullException is thrown when a null distributedCache parameter is passed to the constructor of the DistributedCacheValidatorValueStore class.
…en the distributedCache parameter passed in to the DistributedCacheValidatorValueStore classed constructor is null.
…nstructor that allows us to retrieve the keys from a distributed cache.
…om the DistributedCacheValidatorValueStore classes constructor when a null distributedCacheKeyRetriever is passed in.
…hrown from the DistributedCacheValidatorValueStore classes constructor when a null distributedCacheKeyRetriever is passed in.
… class is constructed when the distributedCache and distributedCacheKeyRetriever parameter passed in are not null.
…lueStore class is constructed when the distributedCache and distributedCacheKeyRetriever parameter passed in are not null.
…om the GetAsync method of the DistributedCacheValidatorValueStore xclass when the key passed in is null.
…ted cache passed in does not have it's GetAsync method called.
… from the GetAsync method of the DistributedCacheValidatorValueStore xclass when the key passed in is null pass.
…Async method of the DistributedCacheValidatorValueStore class when an item with the passed in key is not found in the cache.
… the GetAsync method of the DistributedCacheValidatorValueStore class when an item with the passed in key is not found in the cache.
…dCacheValidatorValueStore class returns an ETag when the passed in key is found.
…stributedCacheValidatorValueStore class returns an ETag when the passed in key is found.
…om the SetAsync method of the DistributedCacheValidatorValueStore class when the key passed in is null.
… from the SetAsync method of the DistributedCacheValidatorValueStore class when the key passed in is null pass.
…om the SetAsync method of the DistributedCacheValidatorValueStore class when the validatorValue passed in is null.
… from the SetAsync method of the DistributedCacheValidatorValueStore class when the validatorValue passed in is null pass.
…eys_When_At_Least_One_Server_Is_Available_But_No_Keys_Exist_On_Any_Of_The_Available_Servers_That_Match_The_Past_in_Value_To_Match_In_The_Database_Specified_In_The_Options_Passed_to_The_Constructor test pass.
…rs available that match the pattern passed in.
…om the AddRedisKeyRetriever method of the ServicesExtensions class when the services parameter passed in is null.
…The_Services_Parameter_Passed_In_Is_Null test pass.
@SeanFarrow SeanFarrow force-pushed the feature/sf/114-allow-storeKey-to-be-rehydrated branch from 676366d to 335793e Compare May 20, 2023 10:15
…en the redisDistributedCacheKeyRetrieverOptionsAction passed to the AddRedisKeyRetriever method of the ServicesExtensions class is null.
…The_RedisDistributedCacheKeyRetrieverOptionsAction_Parameter_Passed_In_Is_Null2 test pass.
…is key retriever are registered with the dependency injection container.
…ervices to use the host builder like every other test that validates that the required types are added to the dependency injection container.
@KevinDockx KevinDockx merged commit b3c73db into KevinDockx:master May 22, 2023
@KevinDockx
Copy link
Owner

Thank you Sean, merged! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants