mirror of
https://github.com/gofiber/storage.git
synced 2025-10-05 00:33:03 +08:00
📦 update mongodb
This commit is contained in:
@@ -16,26 +16,26 @@ type Config struct {
|
||||
var ConfigDefault = Config{}
|
||||
|
||||
// New creates a new storage
|
||||
func New(config ...Config) Storage {
|
||||
return Storage{}
|
||||
func New(config ...Config) *Storage {
|
||||
return &Storage{}
|
||||
}
|
||||
|
||||
// Get value by key
|
||||
func (store *Storage) Get(key string) ([]byte, error) {
|
||||
func (s *Storage) Get(key string) ([]byte, error) {
|
||||
return []byte{}, nil
|
||||
}
|
||||
|
||||
// Set key with value
|
||||
func (store *Storage) Set(key string, val []byte, exp time.Duration) error {
|
||||
func (s *Storage) Set(key string, val []byte, exp time.Duration) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
// Delete key by key
|
||||
func (store *Storage) Delete(key string) error {
|
||||
func (s *Storage) Delete(key string) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
// Clear all keys
|
||||
func (store *Storage) Clear() error {
|
||||
func (s *Storage) Clear() error {
|
||||
return nil
|
||||
}
|
||||
|
Reference in New Issue
Block a user