Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Support IDistributedCache interface (asynchronous) #4

Open
Dresel opened this issue Nov 6, 2020 · 0 comments
Open

Support IDistributedCache interface (asynchronous) #4

Dresel opened this issue Nov 6, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@Dresel
Copy link
Member

Dresel commented Nov 6, 2020

Related to #3.

For the second iteration, the following IDistributedCache methods should be used if the method that is going to be weaved is async. If a CancellationToken is passed to this method it should also be passed to the IDistributedCache methods.

// IDistributedCache interface
public System.Threading.Tasks.Task<byte[]> GetAsync (string key, System.Threading.CancellationToken token = default);

// DistributedCacheExtensions
public static System.Threading.Tasks.Task SetAsync (this Microsoft.Extensions.Caching.Distributed.IDistributedCache cache, string key, byte[] value, System.Threading.CancellationToken token = default);
@Dresel Dresel added the enhancement New feature or request label Nov 6, 2020
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant