store

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2023 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Container

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

func (*Container) Raw

func (c *Container) Raw() []byte

type Store

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

func NewStore

func NewStore(cacheSize int) *Store

func (*Store) Get

func (s *Store) Get(key string, from time.Time, to time.Time) []*model.Candle

func (*Store) Store

func (s *Store) Store(key string, period time.Duration, candles ...*model.Candle)

type TTLCache

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

func NewTTLCache

func NewTTLCache(expirationTimeout time.Duration) *TTLCache

func (*TTLCache) Get

func (s *TTLCache) Get(key string) *Container

func (*TTLCache) Store

func (s *TTLCache) Store(key string, value []byte)

Jump to

Keyboard shortcuts

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