James Kominick

Results 104 comments of James Kominick

Hey guys, I will pick up the old PR and finish it up. We can have a simpler annotation than what's required for redis since there isn't a need to...

Permanent as in it's valid as long as the backing file exists? I think so

merged #145 , released in `0.49.0`

> Yep, that's it - also a hook to programmatically delete a certain key could come in handy @AstroOrbis any cache-annotated function has a cache that's the function name in...

I'll see if I can add this in sometime this week. Thanks for pointing this out!

Hey @phayes, you can ignore arguments by specifying a `convert` block which generates the cache key from your arguments. Here's an example https://github.com/jaemk/cached/blob/f5911dc3fbc03e1db9f87192eb854fac2ee6ac98/examples/kitchen_sink_proc_macro.rs#L67 and there's some more in here https://docs.rs/cached/latest/cached/proc_macro/index.html...

No problem! The caller still passes the db connection reference, but it's not included in the value that is cached and it's not used to determine if there is a...

That's interesting. Have you confirmed that it only happens when a function is `#[cached]`? The core of the macro is right here https://github.com/jaemk/cached/blob/f5911dc3fbc03e1db9f87192eb854fac2ee6ac98/cached_proc_macro/src/lib.rs#L345-L349 There are no modifications made to the...

Hope you can figure it out! I'd definitely try passing in a connection pool if it's possible

I also noticed this while I was updating dependencies, but relocking my deps fixed the problem