Documentation ¶
Index ¶
- type MapCache
- func (*MapCache) Close()
- func (m *MapCache) Copy() internal.StatsCacheInner
- func (m *MapCache) Cost() int64
- func (m *MapCache) Del(k int64)
- func (m *MapCache) Get(k int64) (*statistics.Table, bool)
- func (m *MapCache) Keys() []int64
- func (m *MapCache) Len() int
- func (m *MapCache) Put(k int64, v *statistics.Table) bool
- func (*MapCache) SetCapacity(int64)
- func (m *MapCache) Values() []*statistics.Table
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MapCache ¶
type MapCache struct {
// contains filtered or unexported fields
}
MapCache is a cache based on map.
func (*MapCache) Copy ¶
func (m *MapCache) Copy() internal.StatsCacheInner
Copy implements StatsCacheInner
func (*MapCache) Get ¶
func (m *MapCache) Get(k int64) (*statistics.Table, bool)
Get implements StatsCacheInner
func (*MapCache) Put ¶
func (m *MapCache) Put(k int64, v *statistics.Table) bool
Put implements StatsCacheInner
func (*MapCache) SetCapacity ¶
SetCapacity implements StatsCacheInner
func (*MapCache) Values ¶
func (m *MapCache) Values() []*statistics.Table
Values implements StatsCacheInner
Click to show internal directories.
Click to hide internal directories.