Documentation ¶
Index ¶
- func StringToAnySlice(strings []string) []any
- type List
- type TTLItem
- type TTLQueue
- func (eq *TTLQueue[T]) Clear()
- func (eq *TTLQueue[T]) Delete(item *TTLItem[T])
- func (eq *TTLQueue[T]) Len() int
- func (eq *TTLQueue[T]) Peek() *TTLItem[T]
- func (eq *TTLQueue[T]) Pop() *TTLItem[T]
- func (eq *TTLQueue[T]) Push(value T, expiration time.Time) *TTLItem[T]
- func (eq *TTLQueue[T]) Update(item *TTLItem[T], value T, expiration time.Time)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StringToAnySlice ¶
Types ¶
type TTLItem ¶
type TTLItem[T any] struct { // contains filtered or unexported fields }
func (TTLItem[T]) Expiration ¶
Click to show internal directories.
Click to hide internal directories.