mirror of
https://github.com/gofiber/storage.git
synced 2025-10-04 16:22:52 +08:00
🎑 update tests
This commit is contained in:
@@ -59,6 +59,10 @@ func (s *Storage) Get(key string) ([]byte, error) {
|
||||
|
||||
// Set key with value
|
||||
func (s *Storage) Set(key string, val []byte, exp time.Duration) error {
|
||||
// Ain't Nobody Got Time For That
|
||||
if len(val) <= 0 {
|
||||
return nil
|
||||
}
|
||||
return s.db.Set(context.Background(), key, val, exp).Err()
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user