storage

package
Version: v0.0.0-...-cdf3d8e Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2016 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NotFoundError

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

func (*NotFoundError) Error

func (e *NotFoundError) Error() string

type Storage

type Storage struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func New

func New() *Storage

func (*Storage) Get

func (storage *Storage) Get(key string) (interface{}, error)

func (*Storage) GetElement

func (storage *Storage) GetElement(key, element string) (interface{}, error)

func (*Storage) Keys

func (storage *Storage) Keys() []string

func (*Storage) Remove

func (storage *Storage) Remove(key string) error

func (*Storage) Set

func (storage *Storage) Set(key string, i interface{}, ttl time.Duration) error

func (*Storage) Update

func (storage *Storage) Update(key string, i interface{}) error

type TypeError

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

func (*TypeError) Error

func (e *TypeError) Error() string

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL