Documentation ¶
Index ¶
Constants ¶
View Source
const DriverName = "memory"
Variables ¶
This section is empty.
Functions ¶
func NewMemoryCache ¶
func NewMemoryCounter ¶
Types ¶
type Config ¶
type Config struct { EnableInitiativeClean bool `json:"enable_initiative_clean,omitempty" yaml:"enable_initiative_clean,omitempty" xml:"enable_initiative_clean,omitempty"` CleanIntervalSecond int `json:"clean_interval_second,omitempty" yaml:"clean_interval_second,omitempty" xml:"clean_interval_second,omitempty"` MaxCleanMicroSecond int `json:"max_clean_micro_second,omitempty" yaml:"max_clean_micro_second,omitempty" xml:"max_clean_micro_second,omitempty"` MaxCleanPercentage int `json:"max_clean_percentage,omitempty" yaml:"max_clean_percentage,omitempty" xml:"max_clean_percentage,omitempty"` }
type ReceiverTypeIncorrectError ¶ added in v1.2.8
func NewReceiverTypeIncorrectError ¶ added in v1.2.8
func NewReceiverTypeIncorrectError(t string, isNil bool) ReceiverTypeIncorrectError
func (ReceiverTypeIncorrectError) Error ¶ added in v1.2.8
func (e ReceiverTypeIncorrectError) Error() string
type ValueTypeNotMatchError ¶
func NewValueTypeNotMatchError ¶
func NewValueTypeNotMatchError(want, actually Type) ValueTypeNotMatchError
func (ValueTypeNotMatchError) Error ¶
func (e ValueTypeNotMatchError) Error() string
Click to show internal directories.
Click to hide internal directories.