Documentation ¶
Index ¶
- type Expired
- type ExpiredCtx
- func (ec *ExpiredCtx) Remove(id any, expired bool) bool
- func (ec *ExpiredCtx) SetWithDuration(a Expired, d time.Duration) bool
- func (ec *ExpiredCtx) SetWithTime(a Expired, t time.Time) bool
- func (ec *ExpiredCtx) Stop()
- func (ec *ExpiredCtx) UpdateWithDuration(id any, d time.Duration) bool
- func (ec *ExpiredCtx) UpdateWithTime(id any, t time.Time) bool
- func (ec *ExpiredCtx) Wait()
- type Scratchpads
- type TODO
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExpiredCtx ¶
type ExpiredCtx struct {
// contains filtered or unexported fields
}
func (*ExpiredCtx) SetWithDuration ¶
func (ec *ExpiredCtx) SetWithDuration(a Expired, d time.Duration) bool
func (*ExpiredCtx) SetWithTime ¶
func (ec *ExpiredCtx) SetWithTime(a Expired, t time.Time) bool
func (*ExpiredCtx) Stop ¶
func (ec *ExpiredCtx) Stop()
func (*ExpiredCtx) UpdateWithDuration ¶
func (ec *ExpiredCtx) UpdateWithDuration(id any, d time.Duration) bool
func (*ExpiredCtx) UpdateWithTime ¶
func (ec *ExpiredCtx) UpdateWithTime(id any, t time.Time) bool
func (*ExpiredCtx) Wait ¶
func (ec *ExpiredCtx) Wait()
type Scratchpads ¶
func NewScratchpads ¶
func NewScratchpads[T1 any, T2 any](e *ExpiredCtx, m *tmap.SyncMap[T1, T2], expiredTime time.Duration) *Scratchpads[T1, T2]
func (*Scratchpads[T1, T2]) Set ¶
func (s *Scratchpads[T1, T2]) Set(k T1, v T2)
Click to show internal directories.
Click to hide internal directories.