Effect CommunityEC
Effect Community•3y ago•
25 replies
Riordan

Adding Finalizer to Cache Item for External DB Transfer

It would be cool to be able to add a finaliser to a cache item that runs when the item is invalidated/removed.
Use case is a bit of a misuse of Cache though
I'm looking at using it to basically limit a process to prevent memory blowouts but I would need to be able to move the item to an external db when invalidated
Was this page helpful?