Alastair Crabtree

Results 69 comments of Alastair Crabtree

Might be better to have `MemoryCacheProvider` expose the `IMemoryCache` and then you can cast and compact (and access everything else on that class) , rather than requiring all providers to...

Yeah this looks like a bug to me - thanks for submitting it. It should return the correctly typed object and unwrap the lazy using `GetValueFromLazy` in the same way...

How long does the 300 version take? Your code only has 10s (not 30s as commented) - could it be longer than 10? Also your expiration code is wrong -...

Thanks for this - looks like a genuine bug! Any chance you could add a unit tests that reproduces the issue so we don't make this mistake again?

I think there is a few scenarios to unpack here, and how to handle them below, which might help explain why there is no AddOrUpdate. Say for some reasons I...

Sorry for the slow reply. It depends on how you add the new value to the cache. Say you have Version 1 of Item in the cache. Other threads can...

Yeah something like that would be the way to go. The challenge is that you need to come up with a way to handle the binary serialisation required by IDistributedCache...

I don't think there is any point in putting the lazy into the distributed cache, because it will be a serialised version not the original one with references to real...

You need to fork the repo and push to your fork, then you can open a PR from your fork branch into here

I created a PR for your work @alexdobarganes at #63