Pacific73 / gorm-cache

gorm v2的即插即用、无需修改代码的旁路缓存。An easy-to-use look-aside cache solution for gorm v2 users.
Apache License 2.0
112 stars 29 forks source link

updated gorm-cache to use latest redis/v9 #24

Closed de-metavision closed 1 year ago

de-metavision commented 1 year ago

Library was not compatible with latest https://github.com/redis/go-redis

Installation instructions recommends v9 installation using

go get github.com/redis/go-redis/v9

Therefor, v9 library should be used in gorm-cache as well.

Also did tidy go.mod file.

Pacific73 commented 1 year ago

For compatibility issue, we decided to use older version of redis sdk. In latest release, I've updated the redis sdk to v8.