storage

package
v0.10.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 24, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInitFailed = errors.New("failed to init storage")
	ErrInvalidTTL = errors.New("invalid ttl")
)

Functions

func Module

func Module() fx.Option

Types

type Config added in v0.4.0

type Config struct {
	URL string
}

type Storage

type Storage struct {
	// contains filtered or unexported fields
}

func New

func New(config Config) (*Storage, error)

func (*Storage) GetOrSet

func (s *Storage) GetOrSet(key string) (int, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL