Skip to content

Commit 3127fb5

Browse files
committed
fix: fix cache storage config invalid error
fix asjdf#15
1 parent c704ff7 commit 3127fb5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cache/cache.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ func (c *Gorm2Cache) AttachToDB(db *gorm.DB) {
7676
func (c *Gorm2Cache) Init() error {
7777
c.InstanceId = util.GenInstanceId()
7878

79-
if c.cache != nil {
79+
if c.Config.CacheStorage != nil {
8080
c.cache = c.Config.CacheStorage
8181
} else {
8282
c.cache = storage.NewMem(storage.DefaultMemStoreConfig)

0 commit comments

Comments
 (0)