James Turner

Results 175 comments of James Turner

Would need to create a second implementation that has `Func valueFactory` for `CacheStack` support though.

Might be worth investigating with or comparing against (when the time comes) this .NET caching solution which uses a LRU strategy: https://github.com/bitfaster/BitFaster.Caching

Thanks for your feedback - it won't make the next release (coming in the next few days) but it is definitely something I'm looking into!

(For my own reference) An interesting LFU cache implementation: https://github.com/papers-we-love/papers-we-love/blob/master/caching/a-constant-algorithm-for-implementing-the-lfu-cache-eviction-scheme.pdf Not sure how applicable it is to this given its a LFU not an LRU plus it is a storage...

Hey @DJBMASTER - thanks for raising the issue! While I do understand the difficulty as async-over-sync is extremely problematic, supporting synchronous paths for Cache Tower would practically double the amount...

Hey @lfcosio - currently there isn't a method to iterate over or dump out the data from the cache in any browse-able way. Do you mind expanding on how/why you'd...

Hey @prat0088 - so if I had a method like `IAsyncEnumerable GetKeysAsync()`, that would work for you? Individually it wouldn't be hard for cache layers - in-memory has all its...

Thanks for the information @rapha22! With something like this, where would you be expecting the keys to come from? So if you had in-memory and Redis, is it just returning...

I actually have a mistake in that benchmark. I was trying a few different things out and wrote the optimized benchmark with the non-optimized results. It actually allocates far less...

### Strings vs Tuple Benchmark: Writing ```csharp [SimpleJob(RuntimeMoniker.NetCoreApp50), MemoryDiagnoser] public class TestBenchmark { private Dictionary DataA {get;set;} = new(); private Dictionary DataB {get;set;} = new(); private string BaseString; [GlobalSetup] public...