mirror of
https://github.com/gofiber/storage.git
synced 2025-12-24 05:08:39 +08:00
Bumps the go-ole-modules group with 1 update in the /arangodb directory: [github.com/go-ole/go-ole](https://github.com/go-ole/go-ole). Bumps the go-ole-modules group with 1 update in the /azureblob directory: [github.com/go-ole/go-ole](https://github.com/go-ole/go-ole). Bumps the go-ole-modules group with 1 update in the /cassandra directory: [github.com/go-ole/go-ole](https://github.com/go-ole/go-ole). Bumps the go-ole-modules group with 1 update in the /coherence directory: [github.com/go-ole/go-ole](https://github.com/go-ole/go-ole). Bumps the go-ole-modules group with 1 update in the /couchbase directory: [github.com/go-ole/go-ole](https://github.com/go-ole/go-ole). Bumps the go-ole-modules group with 1 update in the /dynamodb directory: [github.com/go-ole/go-ole](https://github.com/go-ole/go-ole). Bumps the go-ole-modules group with 1 update in the /memcache directory: [github.com/go-ole/go-ole](https://github.com/go-ole/go-ole). Bumps the go-ole-modules group with 1 update in the /minio directory: [github.com/go-ole/go-ole](https://github.com/go-ole/go-ole). Bumps the go-ole-modules group with 1 update in the /mongodb directory: [github.com/go-ole/go-ole](https://github.com/go-ole/go-ole). Bumps the go-ole-modules group with 1 update in the /mysql directory: [github.com/go-ole/go-ole](https://github.com/go-ole/go-ole). Bumps the go-ole-modules group with 1 update in the /nats directory: [github.com/go-ole/go-ole](https://github.com/go-ole/go-ole). Bumps the go-ole-modules group with 1 update in the /neo4j directory: [github.com/go-ole/go-ole](https://github.com/go-ole/go-ole). Bumps the go-ole-modules group with 1 update in the /postgres directory: [github.com/go-ole/go-ole](https://github.com/go-ole/go-ole). Bumps the go-ole-modules group with 1 update in the /rueidis directory: [github.com/go-ole/go-ole](https://github.com/go-ole/go-ole). Bumps the go-ole-modules group with 1 update in the /s3 directory: [github.com/go-ole/go-ole](https://github.com/go-ole/go-ole). Bumps the go-ole-modules group with 1 update in the /scylladb directory: [github.com/go-ole/go-ole](https://github.com/go-ole/go-ole). Bumps the go-ole-modules group with 1 update in the /testhelpers/redis directory: [github.com/go-ole/go-ole](https://github.com/go-ole/go-ole). Bumps the go-ole-modules group with 1 update in the /testhelpers/tck directory: [github.com/go-ole/go-ole](https://github.com/go-ole/go-ole). Updates `github.com/go-ole/go-ole` from 1.2.6 to 1.3.0 - [Release notes](https://github.com/go-ole/go-ole/releases) - [Changelog](https://github.com/go-ole/go-ole/blob/master/ChangeLog.md) - [Commits](https://github.com/go-ole/go-ole/compare/v1.2.6...v1.3.0) Updates `github.com/go-ole/go-ole` from 1.2.6 to 1.3.0 - [Release notes](https://github.com/go-ole/go-ole/releases) - [Changelog](https://github.com/go-ole/go-ole/blob/master/ChangeLog.md) - [Commits](https://github.com/go-ole/go-ole/compare/v1.2.6...v1.3.0) Updates `github.com/go-ole/go-ole` from 1.2.6 to 1.3.0 - [Release notes](https://github.com/go-ole/go-ole/releases) - [Changelog](https://github.com/go-ole/go-ole/blob/master/ChangeLog.md) - [Commits](https://github.com/go-ole/go-ole/compare/v1.2.6...v1.3.0) Updates `github.com/go-ole/go-ole` from 1.2.6 to 1.3.0 - [Release notes](https://github.com/go-ole/go-ole/releases) - [Changelog](https://github.com/go-ole/go-ole/blob/master/ChangeLog.md) - [Commits](https://github.com/go-ole/go-ole/compare/v1.2.6...v1.3.0) Updates `github.com/go-ole/go-ole` from 1.2.6 to 1.3.0 - [Release notes](https://github.com/go-ole/go-ole/releases) - [Changelog](https://github.com/go-ole/go-ole/blob/master/ChangeLog.md) - [Commits](https://github.com/go-ole/go-ole/compare/v1.2.6...v1.3.0) Updates `github.com/go-ole/go-ole` from 1.2.6 to 1.3.0 - [Release notes](https://github.com/go-ole/go-ole/releases) - [Changelog](https://github.com/go-ole/go-ole/blob/master/ChangeLog.md) - [Commits](https://github.com/go-ole/go-ole/compare/v1.2.6...v1.3.0) Updates `github.com/go-ole/go-ole` from 1.2.6 to 1.3.0 - [Release notes](https://github.com/go-ole/go-ole/releases) - [Changelog](https://github.com/go-ole/go-ole/blob/master/ChangeLog.md) - [Commits](https://github.com/go-ole/go-ole/compare/v1.2.6...v1.3.0) Updates `github.com/go-ole/go-ole` from 1.2.6 to 1.3.0 - [Release notes](https://github.com/go-ole/go-ole/releases) - [Changelog](https://github.com/go-ole/go-ole/blob/master/ChangeLog.md) - [Commits](https://github.com/go-ole/go-ole/compare/v1.2.6...v1.3.0) Updates `github.com/go-ole/go-ole` from 1.2.6 to 1.3.0 - [Release notes](https://github.com/go-ole/go-ole/releases) - [Changelog](https://github.com/go-ole/go-ole/blob/master/ChangeLog.md) - [Commits](https://github.com/go-ole/go-ole/compare/v1.2.6...v1.3.0) Updates `github.com/go-ole/go-ole` from 1.2.6 to 1.3.0 - [Release notes](https://github.com/go-ole/go-ole/releases) - [Changelog](https://github.com/go-ole/go-ole/blob/master/ChangeLog.md) - [Commits](https://github.com/go-ole/go-ole/compare/v1.2.6...v1.3.0) Updates `github.com/go-ole/go-ole` from 1.2.6 to 1.3.0 - [Release notes](https://github.com/go-ole/go-ole/releases) - [Changelog](https://github.com/go-ole/go-ole/blob/master/ChangeLog.md) - [Commits](https://github.com/go-ole/go-ole/compare/v1.2.6...v1.3.0) Updates `github.com/go-ole/go-ole` from 1.2.6 to 1.3.0 - [Release notes](https://github.com/go-ole/go-ole/releases) - [Changelog](https://github.com/go-ole/go-ole/blob/master/ChangeLog.md) - [Commits](https://github.com/go-ole/go-ole/compare/v1.2.6...v1.3.0) Updates `github.com/go-ole/go-ole` from 1.2.6 to 1.3.0 - [Release notes](https://github.com/go-ole/go-ole/releases) - [Changelog](https://github.com/go-ole/go-ole/blob/master/ChangeLog.md) - [Commits](https://github.com/go-ole/go-ole/compare/v1.2.6...v1.3.0) Updates `github.com/go-ole/go-ole` from 1.2.6 to 1.3.0 - [Release notes](https://github.com/go-ole/go-ole/releases) - [Changelog](https://github.com/go-ole/go-ole/blob/master/ChangeLog.md) - [Commits](https://github.com/go-ole/go-ole/compare/v1.2.6...v1.3.0) Updates `github.com/go-ole/go-ole` from 1.2.6 to 1.3.0 - [Release notes](https://github.com/go-ole/go-ole/releases) - [Changelog](https://github.com/go-ole/go-ole/blob/master/ChangeLog.md) - [Commits](https://github.com/go-ole/go-ole/compare/v1.2.6...v1.3.0) Updates `github.com/go-ole/go-ole` from 1.2.6 to 1.3.0 - [Release notes](https://github.com/go-ole/go-ole/releases) - [Changelog](https://github.com/go-ole/go-ole/blob/master/ChangeLog.md) - [Commits](https://github.com/go-ole/go-ole/compare/v1.2.6...v1.3.0) Updates `github.com/go-ole/go-ole` from 1.2.6 to 1.3.0 - [Release notes](https://github.com/go-ole/go-ole/releases) - [Changelog](https://github.com/go-ole/go-ole/blob/master/ChangeLog.md) - [Commits](https://github.com/go-ole/go-ole/compare/v1.2.6...v1.3.0) Updates `github.com/go-ole/go-ole` from 1.2.6 to 1.3.0 - [Release notes](https://github.com/go-ole/go-ole/releases) - [Changelog](https://github.com/go-ole/go-ole/blob/master/ChangeLog.md) - [Commits](https://github.com/go-ole/go-ole/compare/v1.2.6...v1.3.0) --- updated-dependencies: - dependency-name: github.com/go-ole/go-ole dependency-version: 1.3.0 dependency-type: indirect update-type: version-update:semver-minor dependency-group: go-ole-modules - dependency-name: github.com/go-ole/go-ole dependency-version: 1.3.0 dependency-type: indirect update-type: version-update:semver-minor dependency-group: go-ole-modules - dependency-name: github.com/go-ole/go-ole dependency-version: 1.3.0 dependency-type: indirect update-type: version-update:semver-minor dependency-group: go-ole-modules - dependency-name: github.com/go-ole/go-ole dependency-version: 1.3.0 dependency-type: indirect update-type: version-update:semver-minor dependency-group: go-ole-modules - dependency-name: github.com/go-ole/go-ole dependency-version: 1.3.0 dependency-type: indirect update-type: version-update:semver-minor dependency-group: go-ole-modules - dependency-name: github.com/go-ole/go-ole dependency-version: 1.3.0 dependency-type: indirect update-type: version-update:semver-minor dependency-group: go-ole-modules - dependency-name: github.com/go-ole/go-ole dependency-version: 1.3.0 dependency-type: indirect update-type: version-update:semver-minor dependency-group: go-ole-modules - dependency-name: github.com/go-ole/go-ole dependency-version: 1.3.0 dependency-type: indirect update-type: version-update:semver-minor dependency-group: go-ole-modules - dependency-name: github.com/go-ole/go-ole dependency-version: 1.3.0 dependency-type: indirect update-type: version-update:semver-minor dependency-group: go-ole-modules - dependency-name: github.com/go-ole/go-ole dependency-version: 1.3.0 dependency-type: indirect update-type: version-update:semver-minor dependency-group: go-ole-modules - dependency-name: github.com/go-ole/go-ole dependency-version: 1.3.0 dependency-type: indirect update-type: version-update:semver-minor dependency-group: go-ole-modules - dependency-name: github.com/go-ole/go-ole dependency-version: 1.3.0 dependency-type: indirect update-type: version-update:semver-minor dependency-group: go-ole-modules - dependency-name: github.com/go-ole/go-ole dependency-version: 1.3.0 dependency-type: indirect update-type: version-update:semver-minor dependency-group: go-ole-modules - dependency-name: github.com/go-ole/go-ole dependency-version: 1.3.0 dependency-type: indirect update-type: version-update:semver-minor dependency-group: go-ole-modules - dependency-name: github.com/go-ole/go-ole dependency-version: 1.3.0 dependency-type: indirect update-type: version-update:semver-minor dependency-group: go-ole-modules - dependency-name: github.com/go-ole/go-ole dependency-version: 1.3.0 dependency-type: indirect update-type: version-update:semver-minor dependency-group: go-ole-modules - dependency-name: github.com/go-ole/go-ole dependency-version: 1.3.0 dependency-type: indirect update-type: version-update:semver-minor dependency-group: go-ole-modules - dependency-name: github.com/go-ole/go-ole dependency-version: 1.3.0 dependency-type: indirect update-type: version-update:semver-minor dependency-group: go-ole-modules ... Signed-off-by: dependabot[bot] <support@github.com>
id, title
| id | title |
|---|---|
| memcache | Memcache |
A Memcache storage driver using bradfitz/gomemcache.
Table of Contents
Signatures
func New(config ...Config) Storage
func (s *Storage) Get(key string) ([]byte, error)
func (s *Storage) GetWithContext(ctx context.Context, key string) ([]byte, error)
func (s *Storage) Set(key string, val []byte, exp time.Duration) error
func (s *Storage) SetWithContext(ctx context.Context, key string, val []byte, exp time.Duration) error
func (s *Storage) Delete(key string) error
func (s *Storage) DeleteWithContext(ctx context.Context, key string) error
func (s *Storage) Reset() error
func (s *Storage) ResetWithContext(ctx context.Context) error
func (s *Storage) Close() error
func (s *Storage) Conn() *mc.Client
Note: The context methods are dummy methods and don't have any functionality, as Memcache does not support context cancellation in its client library. They are provided for compliance with the Fiber storage interface.
Installation
Memory is tested on the 2 last Go versions with support for modules. So make sure to initialize one first if you didn't do that yet:
go mod init github.com/<user>/<repo>
And then install the memory implementation:
go get github.com/gofiber/storage/memory/v2
Examples
Import the storage package.
import "github.com/gofiber/storage/memcache"
You can use the following possibilities to create a storage:
// Initialize default config
store := memcache.New()
// Initialize custom config
store := memcache.New(memcache.Config{
Servers: "localhost:11211",
})
Config
type Config struct {
// Server list divided by ,
// i.e. server1:11211, server2:11212
//
// Optional. Default is "127.0.0.1:11211"
Servers string
// Reset clears any existing keys in existing Table
//
// Optional. Default is false
Reset bool
}
Default Config
var ConfigDefault = Config{
Servers: "127.0.0.1:11211",
}