memcache

package
v1.13.3 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2023 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 Option

type Option func(s *Store)

func WithCapacity

func WithCapacity(capacity int) Option

func WithTTL

func WithTTL(ttl time.Duration) Option

type Store

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

func NewStore

func NewStore(opts ...Option) *Store

func (*Store) Get

func (s *Store) Get(key uint64) ([]byte, bool)

func (*Store) GetTTL

func (s *Store) GetTTL() time.Duration

func (*Store) Release

func (s *Store) Release(key uint64)

func (*Store) ReleaseAll

func (s *Store) ReleaseAll()

func (*Store) Set

func (s *Store) Set(key uint64, response []byte, expiration time.Time)

Jump to

Keyboard shortcuts

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