Documentation ¶
Index ¶
- Constants
- type Heap
- type Store
- func (s *Store) Close()
- func (s *Store) Del(key string)
- func (s *Store) DelAll() error
- func (s *Store) Dump(path string) error
- func (s *Store) Get(key string) ([]byte, bool)
- func (s *Store) Has(key string) bool
- func (s *Store) Set(key string, value []byte, ttlMs int) error
- func (s *Store) Size() uint64
Constants ¶
View Source
const (
// Default files creation mode
FileMode = 0700
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Heap ¶
Heap holds generic heap implementation
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store is concurrent map
func (*Store) Close ¶
func (s *Store) Close()
Close sends exit signal to goroutines that doing background work for the store
Click to show internal directories.
Click to hide internal directories.