Documentation ¶
Index ¶
- type Table
- func (t *Table) Clear()
- func (t *Table) CompareAndSwap(key []byte, old, new unsafe.Pointer) bool
- func (t *Table) Delete(key []byte)
- func (t *Table) DeleteS(key string)
- func (t *Table) Exists(key []byte) bool
- func (t *Table) Get(key []byte) (unsafe.Pointer, bool)
- func (t *Table) GetS(key string) (unsafe.Pointer, bool)
- func (t *Table) PoolPreload()
- func (t *Table) Set(key []byte, val unsafe.Pointer)
- func (t *Table) SetS(key string, val unsafe.Pointer)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Table ¶
type Table struct {
// contains filtered or unexported fields
}
func NewTable ¶
NewTable : Create a new table hash : xxHash64 (default) if hash == nil keysize : The number of keys in the table (recommended: 65536)
func (*Table) Clear ¶
func (t *Table) Clear()
Clear : Clear the table Note: This function drops all the items in the table (GC overhead) No Pooling
func (*Table) CompareAndSwap ¶ added in v1.2.0
func (*Table) PoolPreload ¶
func (t *Table) PoolPreload()
Click to show internal directories.
Click to hide internal directories.