Calum

Results 14 comments of Calum

@long2ice - I've updated the PR based on your comments. Could you merge?

@long2ice - any updates? Let me know if there are any other changes required

@long2ice - needs to run and pass CI workflow then can merge

@long2ice - any updates on this?

I couldn't find a direct way to do it, so I've created a [PR](https://github.com/long2ice/fastapi-cache/pull/35) that allows custom event handlers. Example usage: *Via a decorator:* ```python @FastAPICache.on_event("existing_key") def exists_in_cache(func, *args, **kwargs):...

@MrPowers - happy to create a stab at this and put in a PR. Let me know if it would be useful

@MrPowers - looks good, comments: > - black code formatting Yeah that works, it's PEP8 by default ✅ > - CI checks .. Great idea. We could [add a step...

@MrPowers - please let me know if this meets the requirements