go-gorm / caches

Caches Dialector
MIT License
106 stars 11 forks source link

Pass a context to the Cacher interface #9

Closed mgdigital closed 9 months ago

mgdigital commented 1 year ago

Describe the feature

The Cacher interface would have an additional first argument of a context.Context obtained from the DB Statement.

Motivation

I appreciate this is a breaking change. For now I have forked this library to add this argument to the Cacher. See https://github.com/mgdigital/gorm-cache/pull/1/files

Related Issues

ktsivkov commented 9 months ago

@mgdigital closed with https://github.com/go-gorm/caches/releases/tag/v3.0.0