👋Welcome
👋 환영합니다 📦 🚀 Fiber를 위한 premade 스토리지 드라이버.

다양한 Fiber 미들웨어에서 사용하도록 설계된 Storage
인터페이스를 구현한 premade 스토리지 드라이버입니다.
// Storage interface for communicating with different database/key-value
// providers. Visit https://github.com/gofiber/storage for more info.
type Storage interface {
// Get gets the value for the given key.
// `nil, nil` is returned when the key does not exist
Get(key string) ([]byte, error)
// Set stores the given value for the given key along
// with an expiration value, 0 means no expiration.
// Empty key or value will be ignored without an error.
Set(key string, val []byte, exp time.Duration) error
// Delete deletes the value for the given key.
// It returns no error if the storage does not contain the key,
Delete(key string) error
// Reset resets the storage and delete all keys.
Reset() error
// Close closes the storage and will stop any running garbage
// collectors and open connections.
Close() error
}
📑 스토리지 구현체들
Last updated