mirror of
https://github.com/gofiber/storage.git
synced 2025-10-06 17:17:18 +08:00
📦 add dynamodb
This commit is contained in:
@@ -50,6 +50,9 @@ func New(config ...Config) *Storage {
|
||||
|
||||
// Get value by key
|
||||
func (s *Storage) Get(key string) ([]byte, error) {
|
||||
if len(key) <= 0 {
|
||||
return nil, ErrNotExist
|
||||
}
|
||||
val, err := s.db.Get(context.Background(), key).Bytes()
|
||||
if err == redis.Nil {
|
||||
return nil, ErrNotExist
|
||||
|
Reference in New Issue
Block a user