John Nyingi
John Nyingi

Reputation: 1120

IDistributedCache: Does Refresh/RefreshAsync actually refresh Cache values or just Expiry Time

I am trying to decipher whether Refresh in IDistributedCache for Sql Server actually updates the Value of the cache.

Upvotes: 0

Views: 1654

Answers (1)

Guru Stron
Guru Stron

Reputation: 143083

No, if cache item has sliding expiration then this call resets it. To update value you can just set a new value with IDistributedCache.Set.

Upvotes: 2

Related Questions