Andrei Mironov
Andrei Mironov
Agree. In my project I have a method that accepts a Task object. Right now it is impossible to test the method because to create Task object I need a...
I just wrapped a sting into a custom object. Maybe this could be mentioned in the documentation http://cachemanager.michaco.net/documentation/CacheManagerSerialization?
Hi @MichaCo, > Task.FromResult should be available in .NET 4.5. Completed Task is just a shortcut QOL feature which returns a cached completed task. We can add our own I...
I will try to replace Task to ValueTask and will run the benchmark again. Will post my results here.
@MichaCo I created a separate branch and [changed](https://github.com/andreymir/CacheManager/compare/features/asyncsupport...feature/valuetask) all Task to ValueTask. See benchmarks with ValueTask below: ## AddSingleBenchmark ``` ini BenchmarkDotNet=v0.10.8, OS=Windows 10.0.17134 Processor=Intel Core i7-7700K CPU 4.20GHz (Kaby...
Yes, ValueTask looks better compared to Task. But sync vs async for inmemory cache still significantly slower. I guess we better not change sync implementation and only add new API...
@MichaCo, I added async methods to ICacheManager. Should I also include this into this pull request? The PR is quite large already so could it be better to create a...
@MichaCo we need async methods to use the cache in .net core application. We use redis cache handler and under load 20 rps the application hangs on LoadScripts(). We switched...
@MichaCo , I created a sample https://github.com/andreymir/load-demo To run the application as net462 execute `dotnet run -c Release -f net462` To run the application as netcoreapp execute `dotnet run -c...
@MichaCo, did you be able to reproduce the issue with the demo I created? I want to try to add async methods to ICache interface. Do you have any suggestions...