mirror of
https://github.com/gofiber/storage.git
synced 2025-10-05 16:48:25 +08:00
Fix golangci issues with MySQL
This commit is contained in:

committed by
GitHub

parent
fc7438bcda
commit
4b89c87336
@@ -105,8 +105,6 @@ func New(config ...Config) *Storage {
|
|||||||
return store
|
return store
|
||||||
}
|
}
|
||||||
|
|
||||||
var noRows = "sql: no rows in result set"
|
|
||||||
|
|
||||||
// Get value by key
|
// Get value by key
|
||||||
func (s *Storage) Get(key string) ([]byte, error) {
|
func (s *Storage) Get(key string) ([]byte, error) {
|
||||||
if len(key) <= 0 {
|
if len(key) <= 0 {
|
||||||
@@ -136,7 +134,6 @@ func (s *Storage) Get(key string) ([]byte, error) {
|
|||||||
return data, nil
|
return data, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// Set key with value
|
|
||||||
// Set key with value
|
// Set key with value
|
||||||
func (s *Storage) Set(key string, val []byte, exp time.Duration) error {
|
func (s *Storage) Set(key string, val []byte, exp time.Duration) error {
|
||||||
// Ain't Nobody Got Time For That
|
// Ain't Nobody Got Time For That
|
||||||
|
Reference in New Issue
Block a user