How to implement a memory transactional scope in C #?

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

+6
c # caching transactionscope
source share
1 answer

Sounds like you remember the discussion of Software Transactional Memory from .NET Rocks.

Unfortunately, for this (so far) there is no released, working, usable framework. This is another research project at DevLabs ( STM.NET ).

At the moment, your cloning option is probably still the best approach, at least for any non-commercial or commercial application.

+3
source share

All Articles