leonibr / community-extensions-cache-postgres

A PostgreSQL Implementation of IDistributedCache interface. Using Postgresql as distributed cache in Asp.Net Core. NetStandard 2.0
59 stars 17 forks source link

Use a single thread loop to delete expired items #4

Closed dariogriffo closed 3 years ago

dariogriffo commented 3 years ago

Moving the delete expired items into a single thread. Changing the example to be a .net worker service to allow IHostApplicationLifetime available and use DI all the way down in the example.

leonibr commented 3 years ago

First of all, thank you for your pull request! I will review it later today

dariogriffo commented 3 years ago

First of all, thank you for your pull request! I will review it later today

Thanks a lot! I want to start using this package and would be great to improve the deleting loop.

dariogriffo commented 3 years ago

I did some code cleanup (sealed and internal classes), separated the responsibilities for each class, using DI in each class

leonibr commented 3 years ago

I will update the docs because this release will be a breaking change release. Thank you again for the wonderful job!