📦 add memcache

This commit is contained in:
Fenny
2020-11-02 13:55:13 +01:00
parent 2e09976473
commit 29466ce4d7
5 changed files with 53 additions and 50 deletions

View File

@@ -40,6 +40,7 @@ func New(config ...Config) *Storage {
panic(err)
}
// Set options
db.SetMaxOpenConns(cfg.MaxOpenConns)
db.SetMaxIdleConns(cfg.MaxIdleConns)
db.SetConnMaxLifetime(cfg.ConnMaxLifetime)