Documentation
¶
Index ¶
- Variables
- type ExpiredMapdeprecated
- func New() *ExpiredMapdeprecated
- func (e *ExpiredMap) CheckClose() bool
- func (e *ExpiredMap) Close() error
- func (e *ExpiredMap) Delete(key any) error
- func (e *ExpiredMap) Get(key any) (any, bool, error)
- func (e *ExpiredMap) Range(f func(key, value any, ttl *time.Duration)) error
- func (e *ExpiredMap) Set(key, value any, ttl ...time.Duration) error
- func (e *ExpiredMap) SetAutoClearInterval(i time.Duration) error
- func (e *ExpiredMap) TTL(key any) (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
deprecated
type ExpiredMap struct {
// contains filtered or unexported fields
}
Deprecated: use github.com/Rehtt/Kit/maps
func New
deprecated
func New() *ExpiredMap
Deprecated: use github.com/Rehtt/Kit/maps
func (*ExpiredMap) CheckClose ¶
func (e *ExpiredMap) CheckClose() bool
func (*ExpiredMap) Close ¶
func (e *ExpiredMap) Close() error
func (*ExpiredMap) Delete ¶
func (e *ExpiredMap) Delete(key any) error
func (*ExpiredMap) Range ¶
func (e *ExpiredMap) Range(f func(key, value any, 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.