Documentation
¶
Index ¶
- Variables
- type ExpiredMap
- func (e *ExpiredMap) CheckClose() bool
- func (e *ExpiredMap) Close() error
- func (e *ExpiredMap) Delete(key interface{}) error
- func (e *ExpiredMap) Get(key interface{}) (interface{}, bool, error)
- func (e *ExpiredMap) Range(f func(key, value interface{}, ttl *time.Duration)) error
- func (e *ExpiredMap) Set(key, value interface{}, ttl ...time.Duration) error
- func (e *ExpiredMap) SetAutoClearInterval(i time.Duration) error
- func (e *ExpiredMap) TTL(key interface{}) (time.Duration, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrMapClose = errors.New("ExpiredMap is close")
)
Functions ¶
This section is empty.
Types ¶
type ExpiredMap ¶
type ExpiredMap struct {
// contains filtered or unexported fields
}
func New ¶
func New() *ExpiredMap
func (*ExpiredMap) CheckClose ¶
func (e *ExpiredMap) CheckClose() bool
func (*ExpiredMap) Close ¶
func (e *ExpiredMap) Close() error
func (*ExpiredMap) Delete ¶
func (e *ExpiredMap) Delete(key interface{}) error
func (*ExpiredMap) Get ¶
func (e *ExpiredMap) Get(key interface{}) (interface{}, bool, error)
func (*ExpiredMap) Range ¶
func (e *ExpiredMap) Range(f func(key, value interface{}, ttl *time.Duration)) error
func (*ExpiredMap) Set ¶
func (e *ExpiredMap) Set(key, value interface{}, ttl ...time.Duration) error
func (*ExpiredMap) SetAutoClearInterval ¶
func (e *ExpiredMap) SetAutoClearInterval(i time.Duration) error
Click to show internal directories.
Click to hide internal directories.