Documentation ¶
Overview ¶
Package lookup
@author: xwc1125
Package lookup ¶
@author: xwc1125
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Lookup ¶
type Lookup struct {
// contains filtered or unexported fields
}
func NewLookup ¶
func NewLookup(txConfig *PoolConfig, OnRemoveWithReason func(key string, entry []byte, reason bigcache.RemoveReason)) *Lookup
func (*Lookup) GetAllKeys ¶
type PoolConfig ¶
type PoolConfig struct { MaxTxSize uint64 // Max size of tx pool TxLifeTime time.Duration // 分钟 TxTaskTime time.Duration // 刷新时间(秒) }
func DefaultConfig ¶
func DefaultConfig() *PoolConfig
Click to show internal directories.
Click to hide internal directories.