ResponseCaching icon indicating copy to clipboard operation
ResponseCaching copied to clipboard

Support for IDistributedCache

Open mgroves opened this issue 9 years ago • 6 comments

It doesn't appear that ResponseCache works with IDistributedCache (see this issue over at Couchbase.Extensions. Please correct me if I'm wrong.

Will you be adding support for IDistributedCache in the future?

mgroves avatar Sep 06 '17 13:09 mgroves

+1

Or at least open the middleware up to allow us to inject a distributes cache implementation in to it. Is there a reason why https://github.com/aspnet/ResponseCaching/blob/dev/src/Microsoft.AspNetCore.ResponseCaching/ResponseCachingMiddleware.cs#L40 is not injected in? Thus allowing us to swap the implementation?

Jetski5822 avatar Oct 23 '17 08:10 Jetski5822

+1

The constructor should be opened to allow injecting other IResponseCache implementations. @JunTaoLuo Any plans on doing just that?

hampos avatar Nov 22 '17 11:11 hampos

No current plans for it yet, it will need to be triaged for a future release. cc @muratg

JunTaoLuo avatar Nov 22 '17 19:11 JunTaoLuo

+1

@JunTaoLuo Any valid reason why this doesn't depend on an injected IResponseCache implementation and go with the new MemoryResponseCache when calling the internal constructor?

If you were set to the MemoryResponseCache usage, you could make this optional and initialize to MemoryResponseCache when omitted, a good documentation would then steer developers on how to use this correctly.

When you say future release, does this mean wait 6 months? The answer is vital because it may make more sense for us to just fork this and go with our own version until you guys push it.

theofanis avatar Nov 23 '17 08:11 theofanis

@DamianEdwards @glennc

muratg avatar Nov 23 '17 19:11 muratg

This issue was moved to aspnet/Home#2603

aspnet-hello avatar Jan 02 '18 00:01 aspnet-hello