blastrain / rapidash

Go package for database record or other data caching
MIT License
81 stars 9 forks source link

Support Tx commit callback function #13

Closed kanataxa closed 5 years ago

kanataxa commented 5 years ago

Implements before/after commit callback func in Tx scope.

If you call Tx.BeforeCommitCallback(cb)(or Tx.AfterCommitCallback(scb, fcb)), Rapidash uses callback of Tx preferentially over callback of Rapidash.

goccy commented 5 years ago

LGTM 👍