Replicant icon indicating copy to clipboard operation
Replicant copied to clipboard

Add other cache providers

Open martonx opened this issue 1 year ago • 7 comments

Replicant currently caching in files. It would be nice, if it could handle other cache providers, like inmemory cache, distributed cache, or .net 9 new hybrid cache.

Is the feature request related to a problem

No, or yes, it depends. If you want to use Replicant in distributed environment, then local file caching is not enough.

Describe the solution

Add some extensibility for using other kinds of caching mechanisms, or other caching providers.

Describe alternatives considered

None.

Additional context

martonx avatar Dec 17 '24 15:12 martonx

Is this something you are working on or are you open to an PR for this?

esskar avatar Jan 06 '25 09:01 esskar

yep, happy to consider a pull request

SimonCropp avatar Jan 07 '25 21:01 SimonCropp

Screenshot 2025-01-08 at 01 48 20

Tried to run tests, but lots of the fail. Is this something you are aware of on different dev environments?

esskar avatar Jan 08 '25 00:01 esskar

whats the actual failure? the test pass for me locally and on CI

SimonCropp avatar Jan 08 '25 00:01 SimonCropp

Several, for example EnsureExpiryIsCorrect

Screenshot 2025-01-08 at 02 06 26

here the expiry is not null, (as it does not match any for the min file dates) but was expected to be null

running on MacOS

esskar avatar Jan 08 '25 01:01 esskar

Screenshot 2025-01-08 at 02 24 15

looks like, my file system works differently ... i saw that you are running your build pipeline on macos as well. strange.

esskar avatar Jan 08 '25 01:01 esskar

@esskar given you can recreate the problem on your machine, a pull request that fixes it would be appreciated. or even a new test that fail in CI would help

SimonCropp avatar Jan 08 '25 23:01 SimonCropp