Skip to content
This repository was archived by the owner on Dec 14, 2018. It is now read-only.
This repository was archived by the owner on Dec 14, 2018. It is now read-only.

Consider storing a Task<> in cache tag #4147

@rynowak

Description

@rynowak

We're wondering if the concurrency behavior of #CacheTag is quite right.

Since we store the computed content in a StringBuilder - on cache miss, every thread to reach that block needs to recompute the content. If the content takes a long time to compute, it could mean a lot of extra DB calls or just general processing.

It seems beneficial to have the cache store Task<> so that we can quickly address the 'miss' and have other threads aside from the one computing the data wait on the task.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions