we have a cache that I would like to place next to transactions so that any process must explicitly โcommitโ the changes it wants to make for cached objects and make it possible to roll back any changes when the process fails as well.
Right now, we are deeply cloning cached objects when we receive requests, but this is not a clean solution and also requires honest maintenance.
I remember hearing about some MTS solutions (memory transaction area) on .NetRocks some time ago, but I canโt remember its name! Does anyone know about the good structure of MTS? Alternatively, if I were to implement my own, are there any good recommendations / templates on how to do this?
Thanks,
EDIT: My abbreviation is completely wrong! It was supposed to be STM, Software Transaction Memory
theburningmonk
source share