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