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

New distributed cache tag helper #160

Open
sebastienros opened this issue Mar 22, 2016 · 0 comments
Open

New distributed cache tag helper #160

sebastienros opened this issue Mar 22, 2016 · 0 comments

Comments

@sebastienros
Copy link
Member

We are adding a new caching tag helper named <distributed-cache>. It differs from the <cache> tag helper by being able to serialize the html fragment in a distributed store like Redis or a database for instance.

For example you can cache the rendering of a View Component like this:

<distributed-cache key="some-key" expires-after="@TimeSpan.FromMinutes(10)">
  @Component.Invoke("Some-Component")
</distributed-cache>

The content will be serialized and stored on a distributed cache storage. The default implementation uses the IDistributedCache service but you can override the behavior by providing custom implementations of IDistributedCacheTagHelperFormatter and IDistributedCacheTagHelperService.

Use aspnet/Mvc#3867 for further discussions.

@Eilon Eilon added this to the 1.0.0-rc2 milestone Mar 23, 2016
@aspnet aspnet locked and limited conversation to collaborators Mar 23, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants