BJS-kr / nestjs-omacache

flexible, powerful and simple caching strategy using decorators for NestJS
72 stars 4 forks source link

How do i manage the transaction process in omacache #2

Closed Daniel-kim-junior closed 6 months ago

Daniel-kim-junior commented 6 months ago

i.e) if a database rollback occurs, how is the cache rollback managed?

BJS-kr commented 6 months ago

I think it depends. Generally, you don't need rollback feature in cache pacakage. Because you can set cache only when transaction succeeded. If you are in complicate situation, feel free to share here

jsbyeon1 commented 6 months ago

closed by admin