mirror of
https://github.com/gofiber/storage.git
synced 2025-09-30 22:32:20 +08:00
42 lines
716 B
Go
42 lines
716 B
Go
package sqlite3
|
|
|
|
import (
|
|
"time"
|
|
)
|
|
|
|
// Storage interface that is implemented by storage providers
|
|
type Storage struct {
|
|
}
|
|
|
|
// Config defines the config for storage.
|
|
type Config struct {
|
|
}
|
|
|
|
// ConfigDefault is the default config
|
|
var ConfigDefault = Config{}
|
|
|
|
// New creates a new storage
|
|
func New(config ...Config) Storage {
|
|
return Storage{}
|
|
}
|
|
|
|
// Get value by key
|
|
func (store *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 {
|
|
return nil
|
|
}
|
|
|
|
// Delete key by key
|
|
func (store *Storage) Delete(key string) error {
|
|
return nil
|
|
}
|
|
|
|
// Clear all keys
|
|
func (store *Storage) Clear() error {
|
|
return nil
|
|
}
|