mirror of
https://github.com/gofiber/storage.git
synced 2025-12-24 13:29:30 +08:00
f7114bb20c29290d43eebca849cb7c298df1c058
Bumps the golang-modules group with 3 updates in the /firestore directory: [golang.org/x/crypto](https://github.com/golang/crypto), [golang.org/x/time](https://github.com/golang/time) and [golang.org/x/oauth2](https://github.com/golang/oauth2). Updates `golang.org/x/crypto` from 0.43.0 to 0.45.0 - [Commits](https://github.com/golang/crypto/compare/v0.43.0...v0.45.0) Updates `golang.org/x/sync` from 0.17.0 to 0.18.0 - [Commits](https://github.com/golang/sync/compare/v0.17.0...v0.18.0) Updates `golang.org/x/sys` from 0.37.0 to 0.38.0 - [Commits](https://github.com/golang/sys/compare/v0.37.0...v0.38.0) Updates `golang.org/x/net` from 0.45.0 to 0.47.0 - [Commits](https://github.com/golang/net/compare/v0.45.0...v0.47.0) Updates `golang.org/x/text` from 0.30.0 to 0.31.0 - [Release notes](https://github.com/golang/text/releases) - [Commits](https://github.com/golang/text/compare/v0.30.0...v0.31.0) Updates `golang.org/x/time` from 0.5.0 to 0.14.0 - [Commits](https://github.com/golang/time/compare/v0.5.0...v0.14.0) Updates `golang.org/x/oauth2` from 0.30.0 to 0.33.0 - [Commits](https://github.com/golang/oauth2/compare/v0.30.0...v0.33.0) --- updated-dependencies: - dependency-name: golang.org/x/crypto dependency-version: 0.45.0 dependency-type: indirect update-type: version-update:semver-minor dependency-group: golang-modules - dependency-name: golang.org/x/sync dependency-version: 0.18.0 dependency-type: indirect update-type: version-update:semver-minor dependency-group: golang-modules - dependency-name: golang.org/x/sys dependency-version: 0.38.0 dependency-type: indirect update-type: version-update:semver-minor dependency-group: golang-modules - dependency-name: golang.org/x/net dependency-version: 0.47.0 dependency-type: indirect update-type: version-update:semver-minor dependency-group: golang-modules - dependency-name: golang.org/x/text dependency-version: 0.31.0 dependency-type: indirect update-type: version-update:semver-minor dependency-group: golang-modules - dependency-name: golang.org/x/time dependency-version: 0.14.0 dependency-type: indirect update-type: version-update:semver-minor dependency-group: golang-modules - dependency-name: golang.org/x/oauth2 dependency-version: 0.33.0 dependency-type: indirect update-type: version-update:semver-minor dependency-group: golang-modules ... Signed-off-by: dependabot[bot] <support@github.com>
Merge pull request #2277 from gofiber/dependabot/go_modules/pebble/github.com/getsentry/sentry-go-0.40.0
title, description, sidebar_position
| title | description | sidebar_position |
|---|---|---|
| 👋 Welcome | 📦 Premade storage drivers for 🚀 Fiber. | 1 |
Premade storage drivers that implement the Storage interface, designed to be used with various Fiber middlewares.
Note: All storages are tested with the latest two Go version. Older Go versions may also work, but are not guaranteed to be supported.
// Storage interface for communicating with different database/key-value
// providers. Visit https://github.com/gofiber/storage for more info.
type Storage interface {
// GetWithContext gets the value for the given key with a context.
// `nil, nil` is returned when the key does not exist
GetWithContext(ctx context.Context, key string) ([]byte, error)
// Get gets the value for the given key.
// `nil, nil` is returned when the key does not exist
Get(key string) ([]byte, error)
// SetWithContext stores the given value for the given key
// with an expiration value, 0 means no expiration.
SetWithContext(ctx context.Context, key string, val []byte, exp time.Duration) 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
// DeleteWithContext deletes the value for the given key with a context.
// It returns no error if the storage does not contain the key,
DeleteWithContext(ctx context.Context, key string) 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
// ResetWithContext resets the storage and deletes all keys with a context.
ResetWithContext(ctx context.Context) 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
}
📑 Storage Implementations
Languages
Go
100%