mirror of
https://github.com/gofiber/storage.git
synced 2025-10-04 00:06:35 +08:00
📦 add dynamodb
This commit is contained in:
@@ -111,6 +111,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
|
||||
}
|
||||
res := s.col.FindOne(context.Background(), bson.M{"key": key})
|
||||
item := s.acquireItem()
|
||||
|
||||
|
Reference in New Issue
Block a user