Documentation
¶
Index ¶
- Variables
- func BloomCacheKeyCheck(key string) bool
- func BloomFilterAdd(key string)
- func InitBoomFilter(n uint, fp float64)
- func IsErrKeyNotFound(err error) bool
- func Marshal(data any) ([]byte, error)
- func SetTranscoderFunc(marshaller Marshaller, unMarshaller UnMarshaller)
- func UnMarshal(data []byte, receiver any) error
- type Marshaller
- type UnMarshaller
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrKeyNotFound = errors.New("key not found or expired")
Functions ¶
func BloomCacheKeyCheck ¶ added in v0.0.6
func BloomFilterAdd ¶ added in v0.0.6
func BloomFilterAdd(key string)
func InitBoomFilter ¶ added in v0.0.6
InitBoomFilter 初始化布隆过滤器
func IsErrKeyNotFound ¶ added in v0.0.6
func SetTranscoderFunc ¶ added in v0.0.6
func SetTranscoderFunc(marshaller Marshaller, unMarshaller UnMarshaller)
Types ¶
type Marshaller ¶ added in v0.0.6
type UnMarshaller ¶ added in v0.0.6
Click to show internal directories.
Click to hide internal directories.