BJS-kr / nestjs-omacache

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

How do i manage the transaction process in omacache #2

Closed Daniel-kim-junior closed 8 months ago

Daniel-kim-junior commented 8 months ago

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

BJS-kr commented 8 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 8 months ago

closed by admin