Documentation ¶
Index ¶
- Constants
- Variables
- func GetChunkIndex(key interface{}, size int) (uint32, error)
- func Init(cfg CacheSection)
- func InitCaches()
- func InitChunkSlot()
- func NewCaches() caches
- func StartCleanup()
- type CS
- func (cs *CS) Get(from, to int64) []Iter
- func (cs CS) GetChunk(pos int) *Chunk
- func (cs *CS) GetFlag() uint32
- func (cs *CS) GetInfo() (uint32, uint32)
- func (cs *CS) GetInfoUnsafe() (uint32, uint32)
- func (cs *CS) Push(seriesID interface{}, ts int64, value float64) error
- func (cs *CS) SetFlag(flag uint32)
- type CacheSection
- type Chunk
- type ChunksSlot
- type Iter
- type Point
Constants ¶
View Source
const SHARD_COUNT = 256
Variables ¶
View Source
var ( Caches caches Config CacheSection )
View Source
var FlushDoneChan chan int
View Source
var (
TotalCount int64
)
Functions ¶
func GetChunkIndex ¶
func Init ¶
func Init(cfg CacheSection)
func InitCaches ¶
func InitCaches()
func InitChunkSlot ¶
func InitChunkSlot()
func StartCleanup ¶
func StartCleanup()
Types ¶
type CS ¶
type CS struct { Chunks []*Chunk CurrentChunkPos int sync.RWMutex // contains filtered or unexported fields }
func (*CS) GetInfoUnsafe ¶
type CacheSection ¶
type Chunk ¶
func (*Chunk) FinishSync ¶
func (c *Chunk) FinishSync()
type ChunksSlot ¶
var ChunksSlots *ChunksSlot
func (*ChunksSlot) Get ¶
func (c *ChunksSlot) Get(idx int) map[interface{}][]*Chunk
func (*ChunksSlot) GetChunks ¶
func (c *ChunksSlot) GetChunks(key interface{}) ([]*Chunk, bool)
func (*ChunksSlot) Len ¶
func (c *ChunksSlot) Len(idx int) int
func (*ChunksSlot) Push ¶
func (c *ChunksSlot) Push(key interface{}, val *Chunk)
func (*ChunksSlot) PushChunks ¶
func (c *ChunksSlot) PushChunks(key interface{}, vals []*Chunk)
Click to show internal directories.
Click to hide internal directories.