mirror of
https://github.com/gofiber/storage.git
synced 2025-10-05 16:48:25 +08:00
🏗 remove cfg from storage
This commit is contained in:
@@ -9,8 +9,7 @@ import (
|
||||
|
||||
// Storage interface that is implemented by storage providers
|
||||
type Storage struct {
|
||||
cfg Config
|
||||
db *redis.Client
|
||||
db *redis.Client
|
||||
}
|
||||
|
||||
// New creates a new redis storage
|
||||
@@ -52,8 +51,7 @@ func New(config ...Config) Storage {
|
||||
}
|
||||
// Create new store
|
||||
return Storage{
|
||||
cfg: cfg,
|
||||
db: db,
|
||||
db: db,
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user