Application level Ristretto cache supporting Badger transactions

Hi. I need to cache computed values in my application. Ristretto seems to be a good solution for this, but I need my cache to be consistent with Badger’s state - meaning, I need my cache to respect / support Badger’s transactions and isolate reads and writes. Can somebody shed some light on how this is done in Badger internally? Or is there another solution? I would be very happy about some help. Thanks!