aspnet/Caching

SqlServerCache does not pass on CancellationToken

jovnas opened this issue · 3 comments

This might be by design, but the following lines does not pass on the supplied token and will therefor use default(CancellationToken) instead.

var value = await _dbOperations.GetCacheItemAsync(key);

await _dbOperations.RefreshCacheItemAsync(key);

await _dbOperations.DeleteCacheItemAsync(key);

await _dbOperations.SetCacheItemAsync(key, value, options);

Yeah, looks like a bug to me (@Tratcher do you agree?)

We would accept a PR for this.

Yes, it's worth a try.

Thanks @jovnas for the contribution!