Christian Haynes

Results 74 comments of Christian Haynes

Would it be possible for the logic that is making the request to interface with the cache manager directly? If so you could have it remove related records.

I would be interested in seeing some benchmarks with how things are now as well as when storing the deserialized response. When I have some time I can look into...

> This caught me eye and it would be a useful feature to add support for a cache busting closure. > > > > So the closure takes: > >...

Thanks, glad you found it of some use! Thanks for sharing your findings, and yeah that is a fairly large increase in performance. I will hopefully have some time soon(ish)...

Just published new versions of the crates which should enable you to add the logic you desired, via new `cache_bust` field in the `HttpCacheOptions` struct.

@tusharmath So I was considering ways this might be accomplished and I think one possible route is by implementing a custom CacheManager that doesn't serialize things before storing them (and...

You could add the manager implementation to your app as well, I think this should work: ```rust use http_cache::{CacheManager, HttpResponse, Result}; use std::{fmt, sync::Arc}; use http_cache_semantics::CachePolicy; use moka::future::{Cache, ConcurrentCacheExt}; #[derive(Clone)]...

Sweet, looking forward to seeing how it turns out!

@tusharmath went ahead and made this its own crate for now. Will publish the first release soon. You should be able to use it as a drop in replacement for...

@tusharmath Sounds good! Though I am curious where you see this occurring, I might be misunderstanding or missing something so just want to be sure.