Documentation ¶
Index ¶
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 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) Len ¶
func (c *ChunksSlot) Len(idx int) int
func (*ChunksSlot) Push ¶
func (c *ChunksSlot) Push(key string, val *Chunk)
func (*ChunksSlot) PushChunks ¶
func (c *ChunksSlot) PushChunks(key string, vals []*Chunk)
Click to show internal directories.
Click to hide internal directories.