Documentation
¶
Overview ¶
Package node is a generated by the generator.
Package node is a generated by the generator.
Package node is a generated by the generator.
Package node is a generated by the generator.
Package node is a generated by the generator.
Package node is a generated by the generator.
Package node is a generated by the generator.
Package node is a generated by the generator.
Package node is a generated by the generator.
Package node is a generated by the generator.
Package node is a generated by the generator.
Package node is a generated by the generator.
Package node is a generated generator package.
Index ¶
- Constants
- func Equals[K comparable, V any](a, b Node[K, V]) bool
- type B
- func (n *B[K, V]) AsPointer() unsafe.Pointer
- func (n *B[K, V]) CASExpiresAt(old, new int64) bool
- func (n *B[K, V]) CASRefreshableAt(old, new int64) bool
- func (n *B[K, V]) Die()
- func (n *B[K, V]) ExpiresAt() int64
- func (n *B[K, V]) GetQueueType() uint8
- func (n *B[K, V]) HasExpired(now int64) bool
- func (n *B[K, V]) InMainProbation() bool
- func (n *B[K, V]) InMainProtected() bool
- func (n *B[K, V]) InWindow() bool
- func (n *B[K, V]) IsAlive() bool
- func (n *B[K, V]) IsDead() bool
- func (n *B[K, V]) IsFresh(now int64) bool
- func (n *B[K, V]) IsRetired() bool
- func (n *B[K, V]) Key() K
- func (n *B[K, V]) MakeMainProbation()
- func (n *B[K, V]) MakeMainProtected()
- func (n *B[K, V]) MakeWindow()
- func (n *B[K, V]) Next() Node[K, V]
- func (n *B[K, V]) NextExp() Node[K, V]
- func (n *B[K, V]) Prev() Node[K, V]
- func (n *B[K, V]) PrevExp() Node[K, V]
- func (n *B[K, V]) RefreshableAt() int64
- func (n *B[K, V]) Retire()
- func (n *B[K, V]) SetExpiresAt(new int64)
- func (n *B[K, V]) SetNext(v Node[K, V])
- func (n *B[K, V]) SetNextExp(v Node[K, V])
- func (n *B[K, V]) SetPrev(v Node[K, V])
- func (n *B[K, V]) SetPrevExp(v Node[K, V])
- func (n *B[K, V]) SetQueueType(queueType uint8)
- func (n *B[K, V]) SetRefreshableAt(new int64)
- func (n *B[K, V]) Value() V
- func (n *B[K, V]) Weight() uint32
- type BE
- func (n *BE[K, V]) AsPointer() unsafe.Pointer
- func (n *BE[K, V]) CASExpiresAt(old, new int64) bool
- func (n *BE[K, V]) CASRefreshableAt(old, new int64) bool
- func (n *BE[K, V]) Die()
- func (n *BE[K, V]) ExpiresAt() int64
- func (n *BE[K, V]) GetQueueType() uint8
- func (n *BE[K, V]) HasExpired(now int64) bool
- func (n *BE[K, V]) InMainProbation() bool
- func (n *BE[K, V]) InMainProtected() bool
- func (n *BE[K, V]) InWindow() bool
- func (n *BE[K, V]) IsAlive() bool
- func (n *BE[K, V]) IsDead() bool
- func (n *BE[K, V]) IsFresh(now int64) bool
- func (n *BE[K, V]) IsRetired() bool
- func (n *BE[K, V]) Key() K
- func (n *BE[K, V]) MakeMainProbation()
- func (n *BE[K, V]) MakeMainProtected()
- func (n *BE[K, V]) MakeWindow()
- func (n *BE[K, V]) Next() Node[K, V]
- func (n *BE[K, V]) NextExp() Node[K, V]
- func (n *BE[K, V]) Prev() Node[K, V]
- func (n *BE[K, V]) PrevExp() Node[K, V]
- func (n *BE[K, V]) RefreshableAt() int64
- func (n *BE[K, V]) Retire()
- func (n *BE[K, V]) SetExpiresAt(new int64)
- func (n *BE[K, V]) SetNext(v Node[K, V])
- func (n *BE[K, V]) SetNextExp(v Node[K, V])
- func (n *BE[K, V]) SetPrev(v Node[K, V])
- func (n *BE[K, V]) SetPrevExp(v Node[K, V])
- func (n *BE[K, V]) SetQueueType(queueType uint8)
- func (n *BE[K, V]) SetRefreshableAt(new int64)
- func (n *BE[K, V]) Value() V
- func (n *BE[K, V]) Weight() uint32
- type BER
- func (n *BER[K, V]) AsPointer() unsafe.Pointer
- func (n *BER[K, V]) CASExpiresAt(old, new int64) bool
- func (n *BER[K, V]) CASRefreshableAt(old, new int64) bool
- func (n *BER[K, V]) Die()
- func (n *BER[K, V]) ExpiresAt() int64
- func (n *BER[K, V]) GetQueueType() uint8
- func (n *BER[K, V]) HasExpired(now int64) bool
- func (n *BER[K, V]) InMainProbation() bool
- func (n *BER[K, V]) InMainProtected() bool
- func (n *BER[K, V]) InWindow() bool
- func (n *BER[K, V]) IsAlive() bool
- func (n *BER[K, V]) IsDead() bool
- func (n *BER[K, V]) IsFresh(now int64) bool
- func (n *BER[K, V]) IsRetired() bool
- func (n *BER[K, V]) Key() K
- func (n *BER[K, V]) MakeMainProbation()
- func (n *BER[K, V]) MakeMainProtected()
- func (n *BER[K, V]) MakeWindow()
- func (n *BER[K, V]) Next() Node[K, V]
- func (n *BER[K, V]) NextExp() Node[K, V]
- func (n *BER[K, V]) Prev() Node[K, V]
- func (n *BER[K, V]) PrevExp() Node[K, V]
- func (n *BER[K, V]) RefreshableAt() int64
- func (n *BER[K, V]) Retire()
- func (n *BER[K, V]) SetExpiresAt(new int64)
- func (n *BER[K, V]) SetNext(v Node[K, V])
- func (n *BER[K, V]) SetNextExp(v Node[K, V])
- func (n *BER[K, V]) SetPrev(v Node[K, V])
- func (n *BER[K, V]) SetPrevExp(v Node[K, V])
- func (n *BER[K, V]) SetQueueType(queueType uint8)
- func (n *BER[K, V]) SetRefreshableAt(new int64)
- func (n *BER[K, V]) Value() V
- func (n *BER[K, V]) Weight() uint32
- type BERW
- func (n *BERW[K, V]) AsPointer() unsafe.Pointer
- func (n *BERW[K, V]) CASExpiresAt(old, new int64) bool
- func (n *BERW[K, V]) CASRefreshableAt(old, new int64) bool
- func (n *BERW[K, V]) Die()
- func (n *BERW[K, V]) ExpiresAt() int64
- func (n *BERW[K, V]) GetQueueType() uint8
- func (n *BERW[K, V]) HasExpired(now int64) bool
- func (n *BERW[K, V]) InMainProbation() bool
- func (n *BERW[K, V]) InMainProtected() bool
- func (n *BERW[K, V]) InWindow() bool
- func (n *BERW[K, V]) IsAlive() bool
- func (n *BERW[K, V]) IsDead() bool
- func (n *BERW[K, V]) IsFresh(now int64) bool
- func (n *BERW[K, V]) IsRetired() bool
- func (n *BERW[K, V]) Key() K
- func (n *BERW[K, V]) MakeMainProbation()
- func (n *BERW[K, V]) MakeMainProtected()
- func (n *BERW[K, V]) MakeWindow()
- func (n *BERW[K, V]) Next() Node[K, V]
- func (n *BERW[K, V]) NextExp() Node[K, V]
- func (n *BERW[K, V]) Prev() Node[K, V]
- func (n *BERW[K, V]) PrevExp() Node[K, V]
- func (n *BERW[K, V]) RefreshableAt() int64
- func (n *BERW[K, V]) Retire()
- func (n *BERW[K, V]) SetExpiresAt(new int64)
- func (n *BERW[K, V]) SetNext(v Node[K, V])
- func (n *BERW[K, V]) SetNextExp(v Node[K, V])
- func (n *BERW[K, V]) SetPrev(v Node[K, V])
- func (n *BERW[K, V]) SetPrevExp(v Node[K, V])
- func (n *BERW[K, V]) SetQueueType(queueType uint8)
- func (n *BERW[K, V]) SetRefreshableAt(new int64)
- func (n *BERW[K, V]) Value() V
- func (n *BERW[K, V]) Weight() uint32
- type BEW
- func (n *BEW[K, V]) AsPointer() unsafe.Pointer
- func (n *BEW[K, V]) CASExpiresAt(old, new int64) bool
- func (n *BEW[K, V]) CASRefreshableAt(old, new int64) bool
- func (n *BEW[K, V]) Die()
- func (n *BEW[K, V]) ExpiresAt() int64
- func (n *BEW[K, V]) GetQueueType() uint8
- func (n *BEW[K, V]) HasExpired(now int64) bool
- func (n *BEW[K, V]) InMainProbation() bool
- func (n *BEW[K, V]) InMainProtected() bool
- func (n *BEW[K, V]) InWindow() bool
- func (n *BEW[K, V]) IsAlive() bool
- func (n *BEW[K, V]) IsDead() bool
- func (n *BEW[K, V]) IsFresh(now int64) bool
- func (n *BEW[K, V]) IsRetired() bool
- func (n *BEW[K, V]) Key() K
- func (n *BEW[K, V]) MakeMainProbation()
- func (n *BEW[K, V]) MakeMainProtected()
- func (n *BEW[K, V]) MakeWindow()
- func (n *BEW[K, V]) Next() Node[K, V]
- func (n *BEW[K, V]) NextExp() Node[K, V]
- func (n *BEW[K, V]) Prev() Node[K, V]
- func (n *BEW[K, V]) PrevExp() Node[K, V]
- func (n *BEW[K, V]) RefreshableAt() int64
- func (n *BEW[K, V]) Retire()
- func (n *BEW[K, V]) SetExpiresAt(new int64)
- func (n *BEW[K, V]) SetNext(v Node[K, V])
- func (n *BEW[K, V]) SetNextExp(v Node[K, V])
- func (n *BEW[K, V]) SetPrev(v Node[K, V])
- func (n *BEW[K, V]) SetPrevExp(v Node[K, V])
- func (n *BEW[K, V]) SetQueueType(queueType uint8)
- func (n *BEW[K, V]) SetRefreshableAt(new int64)
- func (n *BEW[K, V]) Value() V
- func (n *BEW[K, V]) Weight() uint32
- type BR
- func (n *BR[K, V]) AsPointer() unsafe.Pointer
- func (n *BR[K, V]) CASExpiresAt(old, new int64) bool
- func (n *BR[K, V]) CASRefreshableAt(old, new int64) bool
- func (n *BR[K, V]) Die()
- func (n *BR[K, V]) ExpiresAt() int64
- func (n *BR[K, V]) GetQueueType() uint8
- func (n *BR[K, V]) HasExpired(now int64) bool
- func (n *BR[K, V]) InMainProbation() bool
- func (n *BR[K, V]) InMainProtected() bool
- func (n *BR[K, V]) InWindow() bool
- func (n *BR[K, V]) IsAlive() bool
- func (n *BR[K, V]) IsDead() bool
- func (n *BR[K, V]) IsFresh(now int64) bool
- func (n *BR[K, V]) IsRetired() bool
- func (n *BR[K, V]) Key() K
- func (n *BR[K, V]) MakeMainProbation()
- func (n *BR[K, V]) MakeMainProtected()
- func (n *BR[K, V]) MakeWindow()
- func (n *BR[K, V]) Next() Node[K, V]
- func (n *BR[K, V]) NextExp() Node[K, V]
- func (n *BR[K, V]) Prev() Node[K, V]
- func (n *BR[K, V]) PrevExp() Node[K, V]
- func (n *BR[K, V]) RefreshableAt() int64
- func (n *BR[K, V]) Retire()
- func (n *BR[K, V]) SetExpiresAt(new int64)
- func (n *BR[K, V]) SetNext(v Node[K, V])
- func (n *BR[K, V]) SetNextExp(v Node[K, V])
- func (n *BR[K, V]) SetPrev(v Node[K, V])
- func (n *BR[K, V]) SetPrevExp(v Node[K, V])
- func (n *BR[K, V]) SetQueueType(queueType uint8)
- func (n *BR[K, V]) SetRefreshableAt(new int64)
- func (n *BR[K, V]) Value() V
- func (n *BR[K, V]) Weight() uint32
- type BRW
- func (n *BRW[K, V]) AsPointer() unsafe.Pointer
- func (n *BRW[K, V]) CASExpiresAt(old, new int64) bool
- func (n *BRW[K, V]) CASRefreshableAt(old, new int64) bool
- func (n *BRW[K, V]) Die()
- func (n *BRW[K, V]) ExpiresAt() int64
- func (n *BRW[K, V]) GetQueueType() uint8
- func (n *BRW[K, V]) HasExpired(now int64) bool
- func (n *BRW[K, V]) InMainProbation() bool
- func (n *BRW[K, V]) InMainProtected() bool
- func (n *BRW[K, V]) InWindow() bool
- func (n *BRW[K, V]) IsAlive() bool
- func (n *BRW[K, V]) IsDead() bool
- func (n *BRW[K, V]) IsFresh(now int64) bool
- func (n *BRW[K, V]) IsRetired() bool
- func (n *BRW[K, V]) Key() K
- func (n *BRW[K, V]) MakeMainProbation()
- func (n *BRW[K, V]) MakeMainProtected()
- func (n *BRW[K, V]) MakeWindow()
- func (n *BRW[K, V]) Next() Node[K, V]
- func (n *BRW[K, V]) NextExp() Node[K, V]
- func (n *BRW[K, V]) Prev() Node[K, V]
- func (n *BRW[K, V]) PrevExp() Node[K, V]
- func (n *BRW[K, V]) RefreshableAt() int64
- func (n *BRW[K, V]) Retire()
- func (n *BRW[K, V]) SetExpiresAt(new int64)
- func (n *BRW[K, V]) SetNext(v Node[K, V])
- func (n *BRW[K, V]) SetNextExp(v Node[K, V])
- func (n *BRW[K, V]) SetPrev(v Node[K, V])
- func (n *BRW[K, V]) SetPrevExp(v Node[K, V])
- func (n *BRW[K, V]) SetQueueType(queueType uint8)
- func (n *BRW[K, V]) SetRefreshableAt(new int64)
- func (n *BRW[K, V]) Value() V
- func (n *BRW[K, V]) Weight() uint32
- type BS
- func (n *BS[K, V]) AsPointer() unsafe.Pointer
- func (n *BS[K, V]) CASExpiresAt(old, new int64) bool
- func (n *BS[K, V]) CASRefreshableAt(old, new int64) bool
- func (n *BS[K, V]) Die()
- func (n *BS[K, V]) ExpiresAt() int64
- func (n *BS[K, V]) GetQueueType() uint8
- func (n *BS[K, V]) HasExpired(now int64) bool
- func (n *BS[K, V]) InMainProbation() bool
- func (n *BS[K, V]) InMainProtected() bool
- func (n *BS[K, V]) InWindow() bool
- func (n *BS[K, V]) IsAlive() bool
- func (n *BS[K, V]) IsDead() bool
- func (n *BS[K, V]) IsFresh(now int64) bool
- func (n *BS[K, V]) IsRetired() bool
- func (n *BS[K, V]) Key() K
- func (n *BS[K, V]) MakeMainProbation()
- func (n *BS[K, V]) MakeMainProtected()
- func (n *BS[K, V]) MakeWindow()
- func (n *BS[K, V]) Next() Node[K, V]
- func (n *BS[K, V]) NextExp() Node[K, V]
- func (n *BS[K, V]) Prev() Node[K, V]
- func (n *BS[K, V]) PrevExp() Node[K, V]
- func (n *BS[K, V]) RefreshableAt() int64
- func (n *BS[K, V]) Retire()
- func (n *BS[K, V]) SetExpiresAt(new int64)
- func (n *BS[K, V]) SetNext(v Node[K, V])
- func (n *BS[K, V]) SetNextExp(v Node[K, V])
- func (n *BS[K, V]) SetPrev(v Node[K, V])
- func (n *BS[K, V]) SetPrevExp(v Node[K, V])
- func (n *BS[K, V]) SetQueueType(queueType uint8)
- func (n *BS[K, V]) SetRefreshableAt(new int64)
- func (n *BS[K, V]) Value() V
- func (n *BS[K, V]) Weight() uint32
- type BSE
- func (n *BSE[K, V]) AsPointer() unsafe.Pointer
- func (n *BSE[K, V]) CASExpiresAt(old, new int64) bool
- func (n *BSE[K, V]) CASRefreshableAt(old, new int64) bool
- func (n *BSE[K, V]) Die()
- func (n *BSE[K, V]) ExpiresAt() int64
- func (n *BSE[K, V]) GetQueueType() uint8
- func (n *BSE[K, V]) HasExpired(now int64) bool
- func (n *BSE[K, V]) InMainProbation() bool
- func (n *BSE[K, V]) InMainProtected() bool
- func (n *BSE[K, V]) InWindow() bool
- func (n *BSE[K, V]) IsAlive() bool
- func (n *BSE[K, V]) IsDead() bool
- func (n *BSE[K, V]) IsFresh(now int64) bool
- func (n *BSE[K, V]) IsRetired() bool
- func (n *BSE[K, V]) Key() K
- func (n *BSE[K, V]) MakeMainProbation()
- func (n *BSE[K, V]) MakeMainProtected()
- func (n *BSE[K, V]) MakeWindow()
- func (n *BSE[K, V]) Next() Node[K, V]
- func (n *BSE[K, V]) NextExp() Node[K, V]
- func (n *BSE[K, V]) Prev() Node[K, V]
- func (n *BSE[K, V]) PrevExp() Node[K, V]
- func (n *BSE[K, V]) RefreshableAt() int64
- func (n *BSE[K, V]) Retire()
- func (n *BSE[K, V]) SetExpiresAt(new int64)
- func (n *BSE[K, V]) SetNext(v Node[K, V])
- func (n *BSE[K, V]) SetNextExp(v Node[K, V])
- func (n *BSE[K, V]) SetPrev(v Node[K, V])
- func (n *BSE[K, V]) SetPrevExp(v Node[K, V])
- func (n *BSE[K, V]) SetQueueType(queueType uint8)
- func (n *BSE[K, V]) SetRefreshableAt(new int64)
- func (n *BSE[K, V]) Value() V
- func (n *BSE[K, V]) Weight() uint32
- type BSER
- func (n *BSER[K, V]) AsPointer() unsafe.Pointer
- func (n *BSER[K, V]) CASExpiresAt(old, new int64) bool
- func (n *BSER[K, V]) CASRefreshableAt(old, new int64) bool
- func (n *BSER[K, V]) Die()
- func (n *BSER[K, V]) ExpiresAt() int64
- func (n *BSER[K, V]) GetQueueType() uint8
- func (n *BSER[K, V]) HasExpired(now int64) bool
- func (n *BSER[K, V]) InMainProbation() bool
- func (n *BSER[K, V]) InMainProtected() bool
- func (n *BSER[K, V]) InWindow() bool
- func (n *BSER[K, V]) IsAlive() bool
- func (n *BSER[K, V]) IsDead() bool
- func (n *BSER[K, V]) IsFresh(now int64) bool
- func (n *BSER[K, V]) IsRetired() bool
- func (n *BSER[K, V]) Key() K
- func (n *BSER[K, V]) MakeMainProbation()
- func (n *BSER[K, V]) MakeMainProtected()
- func (n *BSER[K, V]) MakeWindow()
- func (n *BSER[K, V]) Next() Node[K, V]
- func (n *BSER[K, V]) NextExp() Node[K, V]
- func (n *BSER[K, V]) Prev() Node[K, V]
- func (n *BSER[K, V]) PrevExp() Node[K, V]
- func (n *BSER[K, V]) RefreshableAt() int64
- func (n *BSER[K, V]) Retire()
- func (n *BSER[K, V]) SetExpiresAt(new int64)
- func (n *BSER[K, V]) SetNext(v Node[K, V])
- func (n *BSER[K, V]) SetNextExp(v Node[K, V])
- func (n *BSER[K, V]) SetPrev(v Node[K, V])
- func (n *BSER[K, V]) SetPrevExp(v Node[K, V])
- func (n *BSER[K, V]) SetQueueType(queueType uint8)
- func (n *BSER[K, V]) SetRefreshableAt(new int64)
- func (n *BSER[K, V]) Value() V
- func (n *BSER[K, V]) Weight() uint32
- type BSR
- func (n *BSR[K, V]) AsPointer() unsafe.Pointer
- func (n *BSR[K, V]) CASExpiresAt(old, new int64) bool
- func (n *BSR[K, V]) CASRefreshableAt(old, new int64) bool
- func (n *BSR[K, V]) Die()
- func (n *BSR[K, V]) ExpiresAt() int64
- func (n *BSR[K, V]) GetQueueType() uint8
- func (n *BSR[K, V]) HasExpired(now int64) bool
- func (n *BSR[K, V]) InMainProbation() bool
- func (n *BSR[K, V]) InMainProtected() bool
- func (n *BSR[K, V]) InWindow() bool
- func (n *BSR[K, V]) IsAlive() bool
- func (n *BSR[K, V]) IsDead() bool
- func (n *BSR[K, V]) IsFresh(now int64) bool
- func (n *BSR[K, V]) IsRetired() bool
- func (n *BSR[K, V]) Key() K
- func (n *BSR[K, V]) MakeMainProbation()
- func (n *BSR[K, V]) MakeMainProtected()
- func (n *BSR[K, V]) MakeWindow()
- func (n *BSR[K, V]) Next() Node[K, V]
- func (n *BSR[K, V]) NextExp() Node[K, V]
- func (n *BSR[K, V]) Prev() Node[K, V]
- func (n *BSR[K, V]) PrevExp() Node[K, V]
- func (n *BSR[K, V]) RefreshableAt() int64
- func (n *BSR[K, V]) Retire()
- func (n *BSR[K, V]) SetExpiresAt(new int64)
- func (n *BSR[K, V]) SetNext(v Node[K, V])
- func (n *BSR[K, V]) SetNextExp(v Node[K, V])
- func (n *BSR[K, V]) SetPrev(v Node[K, V])
- func (n *BSR[K, V]) SetPrevExp(v Node[K, V])
- func (n *BSR[K, V]) SetQueueType(queueType uint8)
- func (n *BSR[K, V]) SetRefreshableAt(new int64)
- func (n *BSR[K, V]) Value() V
- func (n *BSR[K, V]) Weight() uint32
- type BW
- func (n *BW[K, V]) AsPointer() unsafe.Pointer
- func (n *BW[K, V]) CASExpiresAt(old, new int64) bool
- func (n *BW[K, V]) CASRefreshableAt(old, new int64) bool
- func (n *BW[K, V]) Die()
- func (n *BW[K, V]) ExpiresAt() int64
- func (n *BW[K, V]) GetQueueType() uint8
- func (n *BW[K, V]) HasExpired(now int64) bool
- func (n *BW[K, V]) InMainProbation() bool
- func (n *BW[K, V]) InMainProtected() bool
- func (n *BW[K, V]) InWindow() bool
- func (n *BW[K, V]) IsAlive() bool
- func (n *BW[K, V]) IsDead() bool
- func (n *BW[K, V]) IsFresh(now int64) bool
- func (n *BW[K, V]) IsRetired() bool
- func (n *BW[K, V]) Key() K
- func (n *BW[K, V]) MakeMainProbation()
- func (n *BW[K, V]) MakeMainProtected()
- func (n *BW[K, V]) MakeWindow()
- func (n *BW[K, V]) Next() Node[K, V]
- func (n *BW[K, V]) NextExp() Node[K, V]
- func (n *BW[K, V]) Prev() Node[K, V]
- func (n *BW[K, V]) PrevExp() Node[K, V]
- func (n *BW[K, V]) RefreshableAt() int64
- func (n *BW[K, V]) Retire()
- func (n *BW[K, V]) SetExpiresAt(new int64)
- func (n *BW[K, V]) SetNext(v Node[K, V])
- func (n *BW[K, V]) SetNextExp(v Node[K, V])
- func (n *BW[K, V]) SetPrev(v Node[K, V])
- func (n *BW[K, V]) SetPrevExp(v Node[K, V])
- func (n *BW[K, V]) SetQueueType(queueType uint8)
- func (n *BW[K, V]) SetRefreshableAt(new int64)
- func (n *BW[K, V]) Value() V
- func (n *BW[K, V]) Weight() uint32
- type Config
- type Manager
- type Node
- func CastPointerToB[K comparable, V any](ptr unsafe.Pointer) Node[K, V]
- func CastPointerToBE[K comparable, V any](ptr unsafe.Pointer) Node[K, V]
- func CastPointerToBER[K comparable, V any](ptr unsafe.Pointer) Node[K, V]
- func CastPointerToBERW[K comparable, V any](ptr unsafe.Pointer) Node[K, V]
- func CastPointerToBEW[K comparable, V any](ptr unsafe.Pointer) Node[K, V]
- func CastPointerToBR[K comparable, V any](ptr unsafe.Pointer) Node[K, V]
- func CastPointerToBRW[K comparable, V any](ptr unsafe.Pointer) Node[K, V]
- func CastPointerToBS[K comparable, V any](ptr unsafe.Pointer) Node[K, V]
- func CastPointerToBSE[K comparable, V any](ptr unsafe.Pointer) Node[K, V]
- func CastPointerToBSER[K comparable, V any](ptr unsafe.Pointer) Node[K, V]
- func CastPointerToBSR[K comparable, V any](ptr unsafe.Pointer) Node[K, V]
- func CastPointerToBW[K comparable, V any](ptr unsafe.Pointer) Node[K, V]
- func NewB[K comparable, V any](key K, value V, expiresAt, refreshableAt int64, weight uint32) Node[K, V]
- func NewBE[K comparable, V any](key K, value V, expiresAt, refreshableAt int64, weight uint32) Node[K, V]
- func NewBER[K comparable, V any](key K, value V, expiresAt, refreshableAt int64, weight uint32) Node[K, V]
- func NewBERW[K comparable, V any](key K, value V, expiresAt, refreshableAt int64, weight uint32) Node[K, V]
- func NewBEW[K comparable, V any](key K, value V, expiresAt, refreshableAt int64, weight uint32) Node[K, V]
- func NewBR[K comparable, V any](key K, value V, expiresAt, refreshableAt int64, weight uint32) Node[K, V]
- func NewBRW[K comparable, V any](key K, value V, expiresAt, refreshableAt int64, weight uint32) Node[K, V]
- func NewBS[K comparable, V any](key K, value V, expiresAt, refreshableAt int64, weight uint32) Node[K, V]
- func NewBSE[K comparable, V any](key K, value V, expiresAt, refreshableAt int64, weight uint32) Node[K, V]
- func NewBSER[K comparable, V any](key K, value V, expiresAt, refreshableAt int64, weight uint32) Node[K, V]
- func NewBSR[K comparable, V any](key K, value V, expiresAt, refreshableAt int64, weight uint32) Node[K, V]
- func NewBW[K comparable, V any](key K, value V, expiresAt, refreshableAt int64, weight uint32) Node[K, V]
Constants ¶
const ( InWindowQueue uint8 = iota InMainProbationQueue InMainProtectedQueue )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type B ¶
type B[K comparable, V any] struct { // contains filtered or unexported fields }
B is a cache entry that provide the following features:
1. Base
func (*B[K, V]) CASExpiresAt ¶
func (*B[K, V]) CASRefreshableAt ¶
func (*B[K, V]) GetQueueType ¶
func (*B[K, V]) HasExpired ¶
func (*B[K, V]) InMainProbation ¶
func (*B[K, V]) InMainProtected ¶
func (*B[K, V]) MakeMainProbation ¶
func (n *B[K, V]) MakeMainProbation()
func (*B[K, V]) MakeMainProtected ¶
func (n *B[K, V]) MakeMainProtected()
func (*B[K, V]) MakeWindow ¶
func (n *B[K, V]) MakeWindow()
func (*B[K, V]) RefreshableAt ¶
func (*B[K, V]) SetExpiresAt ¶
func (*B[K, V]) SetNextExp ¶
func (*B[K, V]) SetPrevExp ¶
func (*B[K, V]) SetQueueType ¶
func (*B[K, V]) SetRefreshableAt ¶
type BE ¶
type BE[K comparable, V any] struct { // contains filtered or unexported fields }
BE is a cache entry that provide the following features:
1. Base
2. Expiration
func (*BE[K, V]) CASExpiresAt ¶
func (*BE[K, V]) CASRefreshableAt ¶
func (*BE[K, V]) GetQueueType ¶
func (*BE[K, V]) HasExpired ¶
func (*BE[K, V]) InMainProbation ¶
func (*BE[K, V]) InMainProtected ¶
func (*BE[K, V]) MakeMainProbation ¶
func (n *BE[K, V]) MakeMainProbation()
func (*BE[K, V]) MakeMainProtected ¶
func (n *BE[K, V]) MakeMainProtected()
func (*BE[K, V]) MakeWindow ¶
func (n *BE[K, V]) MakeWindow()
func (*BE[K, V]) RefreshableAt ¶
func (*BE[K, V]) SetExpiresAt ¶
func (*BE[K, V]) SetNextExp ¶
func (*BE[K, V]) SetPrevExp ¶
func (*BE[K, V]) SetQueueType ¶
func (*BE[K, V]) SetRefreshableAt ¶
type BER ¶
type BER[K comparable, V any] struct { // contains filtered or unexported fields }
BER is a cache entry that provide the following features:
1. Base
2. Expiration
3. Refresh
func (*BER[K, V]) CASExpiresAt ¶
func (*BER[K, V]) CASRefreshableAt ¶
func (*BER[K, V]) GetQueueType ¶
func (*BER[K, V]) HasExpired ¶
func (*BER[K, V]) InMainProbation ¶
func (*BER[K, V]) InMainProtected ¶
func (*BER[K, V]) MakeMainProbation ¶
func (n *BER[K, V]) MakeMainProbation()
func (*BER[K, V]) MakeMainProtected ¶
func (n *BER[K, V]) MakeMainProtected()
func (*BER[K, V]) MakeWindow ¶
func (n *BER[K, V]) MakeWindow()
func (*BER[K, V]) RefreshableAt ¶
func (*BER[K, V]) SetExpiresAt ¶
func (*BER[K, V]) SetNextExp ¶
func (*BER[K, V]) SetPrevExp ¶
func (*BER[K, V]) SetQueueType ¶
func (*BER[K, V]) SetRefreshableAt ¶
type BERW ¶
type BERW[K comparable, V any] struct { // contains filtered or unexported fields }
BERW is a cache entry that provide the following features:
1. Base
2. Expiration
3. Refresh
4. Weight
func (*BERW[K, V]) CASExpiresAt ¶
func (*BERW[K, V]) CASRefreshableAt ¶
func (*BERW[K, V]) GetQueueType ¶
func (*BERW[K, V]) HasExpired ¶
func (*BERW[K, V]) InMainProbation ¶
func (*BERW[K, V]) InMainProtected ¶
func (*BERW[K, V]) MakeMainProbation ¶
func (n *BERW[K, V]) MakeMainProbation()
func (*BERW[K, V]) MakeMainProtected ¶
func (n *BERW[K, V]) MakeMainProtected()
func (*BERW[K, V]) MakeWindow ¶
func (n *BERW[K, V]) MakeWindow()
func (*BERW[K, V]) RefreshableAt ¶
func (*BERW[K, V]) SetExpiresAt ¶
func (*BERW[K, V]) SetNextExp ¶
func (*BERW[K, V]) SetPrevExp ¶
func (*BERW[K, V]) SetQueueType ¶
func (*BERW[K, V]) SetRefreshableAt ¶
type BEW ¶
type BEW[K comparable, V any] struct { // contains filtered or unexported fields }
BEW is a cache entry that provide the following features:
1. Base
2. Expiration
3. Weight
func (*BEW[K, V]) CASExpiresAt ¶
func (*BEW[K, V]) CASRefreshableAt ¶
func (*BEW[K, V]) GetQueueType ¶
func (*BEW[K, V]) HasExpired ¶
func (*BEW[K, V]) InMainProbation ¶
func (*BEW[K, V]) InMainProtected ¶
func (*BEW[K, V]) MakeMainProbation ¶
func (n *BEW[K, V]) MakeMainProbation()
func (*BEW[K, V]) MakeMainProtected ¶
func (n *BEW[K, V]) MakeMainProtected()
func (*BEW[K, V]) MakeWindow ¶
func (n *BEW[K, V]) MakeWindow()
func (*BEW[K, V]) RefreshableAt ¶
func (*BEW[K, V]) SetExpiresAt ¶
func (*BEW[K, V]) SetNextExp ¶
func (*BEW[K, V]) SetPrevExp ¶
func (*BEW[K, V]) SetQueueType ¶
func (*BEW[K, V]) SetRefreshableAt ¶
type BR ¶
type BR[K comparable, V any] struct { // contains filtered or unexported fields }
BR is a cache entry that provide the following features:
1. Base
2. Refresh
func (*BR[K, V]) CASExpiresAt ¶
func (*BR[K, V]) CASRefreshableAt ¶
func (*BR[K, V]) GetQueueType ¶
func (*BR[K, V]) HasExpired ¶
func (*BR[K, V]) InMainProbation ¶
func (*BR[K, V]) InMainProtected ¶
func (*BR[K, V]) MakeMainProbation ¶
func (n *BR[K, V]) MakeMainProbation()
func (*BR[K, V]) MakeMainProtected ¶
func (n *BR[K, V]) MakeMainProtected()
func (*BR[K, V]) MakeWindow ¶
func (n *BR[K, V]) MakeWindow()
func (*BR[K, V]) RefreshableAt ¶
func (*BR[K, V]) SetExpiresAt ¶
func (*BR[K, V]) SetNextExp ¶
func (*BR[K, V]) SetPrevExp ¶
func (*BR[K, V]) SetQueueType ¶
func (*BR[K, V]) SetRefreshableAt ¶
type BRW ¶
type BRW[K comparable, V any] struct { // contains filtered or unexported fields }
BRW is a cache entry that provide the following features:
1. Base
2. Refresh
3. Weight
func (*BRW[K, V]) CASExpiresAt ¶
func (*BRW[K, V]) CASRefreshableAt ¶
func (*BRW[K, V]) GetQueueType ¶
func (*BRW[K, V]) HasExpired ¶
func (*BRW[K, V]) InMainProbation ¶
func (*BRW[K, V]) InMainProtected ¶
func (*BRW[K, V]) MakeMainProbation ¶
func (n *BRW[K, V]) MakeMainProbation()
func (*BRW[K, V]) MakeMainProtected ¶
func (n *BRW[K, V]) MakeMainProtected()
func (*BRW[K, V]) MakeWindow ¶
func (n *BRW[K, V]) MakeWindow()
func (*BRW[K, V]) RefreshableAt ¶
func (*BRW[K, V]) SetExpiresAt ¶
func (*BRW[K, V]) SetNextExp ¶
func (*BRW[K, V]) SetPrevExp ¶
func (*BRW[K, V]) SetQueueType ¶
func (*BRW[K, V]) SetRefreshableAt ¶
type BS ¶
type BS[K comparable, V any] struct { // contains filtered or unexported fields }
BS is a cache entry that provide the following features:
1. Base
2. Size
func (*BS[K, V]) CASExpiresAt ¶
func (*BS[K, V]) CASRefreshableAt ¶
func (*BS[K, V]) GetQueueType ¶
func (*BS[K, V]) HasExpired ¶
func (*BS[K, V]) InMainProbation ¶
func (*BS[K, V]) InMainProtected ¶
func (*BS[K, V]) MakeMainProbation ¶
func (n *BS[K, V]) MakeMainProbation()
func (*BS[K, V]) MakeMainProtected ¶
func (n *BS[K, V]) MakeMainProtected()
func (*BS[K, V]) MakeWindow ¶
func (n *BS[K, V]) MakeWindow()
func (*BS[K, V]) RefreshableAt ¶
func (*BS[K, V]) SetExpiresAt ¶
func (*BS[K, V]) SetNextExp ¶
func (*BS[K, V]) SetPrevExp ¶
func (*BS[K, V]) SetQueueType ¶
func (*BS[K, V]) SetRefreshableAt ¶
type BSE ¶
type BSE[K comparable, V any] struct { // contains filtered or unexported fields }
BSE is a cache entry that provide the following features:
1. Base
2. Size
3. Expiration
func (*BSE[K, V]) CASExpiresAt ¶
func (*BSE[K, V]) CASRefreshableAt ¶
func (*BSE[K, V]) GetQueueType ¶
func (*BSE[K, V]) HasExpired ¶
func (*BSE[K, V]) InMainProbation ¶
func (*BSE[K, V]) InMainProtected ¶
func (*BSE[K, V]) MakeMainProbation ¶
func (n *BSE[K, V]) MakeMainProbation()
func (*BSE[K, V]) MakeMainProtected ¶
func (n *BSE[K, V]) MakeMainProtected()
func (*BSE[K, V]) MakeWindow ¶
func (n *BSE[K, V]) MakeWindow()
func (*BSE[K, V]) RefreshableAt ¶
func (*BSE[K, V]) SetExpiresAt ¶
func (*BSE[K, V]) SetNextExp ¶
func (*BSE[K, V]) SetPrevExp ¶
func (*BSE[K, V]) SetQueueType ¶
func (*BSE[K, V]) SetRefreshableAt ¶
type BSER ¶
type BSER[K comparable, V any] struct { // contains filtered or unexported fields }
BSER is a cache entry that provide the following features:
1. Base
2. Size
3. Expiration
4. Refresh
func (*BSER[K, V]) CASExpiresAt ¶
func (*BSER[K, V]) CASRefreshableAt ¶
func (*BSER[K, V]) GetQueueType ¶
func (*BSER[K, V]) HasExpired ¶
func (*BSER[K, V]) InMainProbation ¶
func (*BSER[K, V]) InMainProtected ¶
func (*BSER[K, V]) MakeMainProbation ¶
func (n *BSER[K, V]) MakeMainProbation()
func (*BSER[K, V]) MakeMainProtected ¶
func (n *BSER[K, V]) MakeMainProtected()
func (*BSER[K, V]) MakeWindow ¶
func (n *BSER[K, V]) MakeWindow()
func (*BSER[K, V]) RefreshableAt ¶
func (*BSER[K, V]) SetExpiresAt ¶
func (*BSER[K, V]) SetNextExp ¶
func (*BSER[K, V]) SetPrevExp ¶
func (*BSER[K, V]) SetQueueType ¶
func (*BSER[K, V]) SetRefreshableAt ¶
type BSR ¶
type BSR[K comparable, V any] struct { // contains filtered or unexported fields }
BSR is a cache entry that provide the following features:
1. Base
2. Size
3. Refresh
func (*BSR[K, V]) CASExpiresAt ¶
func (*BSR[K, V]) CASRefreshableAt ¶
func (*BSR[K, V]) GetQueueType ¶
func (*BSR[K, V]) HasExpired ¶
func (*BSR[K, V]) InMainProbation ¶
func (*BSR[K, V]) InMainProtected ¶
func (*BSR[K, V]) MakeMainProbation ¶
func (n *BSR[K, V]) MakeMainProbation()
func (*BSR[K, V]) MakeMainProtected ¶
func (n *BSR[K, V]) MakeMainProtected()
func (*BSR[K, V]) MakeWindow ¶
func (n *BSR[K, V]) MakeWindow()
func (*BSR[K, V]) RefreshableAt ¶
func (*BSR[K, V]) SetExpiresAt ¶
func (*BSR[K, V]) SetNextExp ¶
func (*BSR[K, V]) SetPrevExp ¶
func (*BSR[K, V]) SetQueueType ¶
func (*BSR[K, V]) SetRefreshableAt ¶
type BW ¶
type BW[K comparable, V any] struct { // contains filtered or unexported fields }
BW is a cache entry that provide the following features:
1. Base
2. Weight
func (*BW[K, V]) CASExpiresAt ¶
func (*BW[K, V]) CASRefreshableAt ¶
func (*BW[K, V]) GetQueueType ¶
func (*BW[K, V]) HasExpired ¶
func (*BW[K, V]) InMainProbation ¶
func (*BW[K, V]) InMainProtected ¶
func (*BW[K, V]) MakeMainProbation ¶
func (n *BW[K, V]) MakeMainProbation()
func (*BW[K, V]) MakeMainProtected ¶
func (n *BW[K, V]) MakeMainProtected()
func (*BW[K, V]) MakeWindow ¶
func (n *BW[K, V]) MakeWindow()
func (*BW[K, V]) RefreshableAt ¶
func (*BW[K, V]) SetExpiresAt ¶
func (*BW[K, V]) SetNextExp ¶
func (*BW[K, V]) SetPrevExp ¶
func (*BW[K, V]) SetQueueType ¶
func (*BW[K, V]) SetRefreshableAt ¶
type Manager ¶
type Manager[K comparable, V any] struct { // contains filtered or unexported fields }
func NewManager ¶
func NewManager[K comparable, V any](c Config) *Manager[K, V]
func (*Manager[K, V]) FromPointer ¶
type Node ¶
type Node[K comparable, V any] interface { // Key returns the key. Key() K // Value returns the value. Value() V // AsPointer returns the node as a pointer. AsPointer() unsafe.Pointer // Prev returns the previous node in the eviction policy. Prev() Node[K, V] // SetPrev sets the previous node in the eviction policy. SetPrev(v Node[K, V]) // Next returns the next node in the eviction policy. Next() Node[K, V] // SetNext sets the next node in the eviction policy. SetNext(v Node[K, V]) // PrevExp returns the previous node in the expiration policy. PrevExp() Node[K, V] // SetPrevExp sets the previous node in the expiration policy. SetPrevExp(v Node[K, V]) // NextExp returns the next node in the expiration policy. NextExp() Node[K, V] // SetNextExp sets the next node in the expiration policy. SetNextExp(v Node[K, V]) // HasExpired returns true if node has expired. HasExpired(now int64) bool // ExpiresAt returns the expiration time. ExpiresAt() int64 // CASExpiresAt executes the compare-and-swap operation for expiresAt. CASExpiresAt(old, new int64) bool // SetExpiresAt sets the expiration time. SetExpiresAt(new int64) // RefreshableAt returns the refresh time. RefreshableAt() int64 // CASRefreshableAt executes the compare-and-swap operation for refreshableAt. CASRefreshableAt(old, new int64) bool // SetRefreshableAt returns the refresh time. SetRefreshableAt(new int64) IsFresh(now int64) bool // Weight returns the weight of the node. Weight() uint32 // IsAlive returns true if the entry is available in the hash-table and page replacement policy. IsAlive() bool // IsRetired returns true if the entry was removed from the hash-table and is awaiting removal from the page // replacement policy. IsRetired() bool // Retire sets the node to the retired state. Retire() // IsDead returns true if the entry was removed from the hash-table and the page replacement policy. IsDead() bool // Die sets the node to the dead state. Die() // GetQueueType returns the queue that the entry's resides in (window, probation, or protected). GetQueueType() uint8 // SetQueueType sets queue that the entry resides in (window, probation, or protected). SetQueueType(queueType uint8) // InWindow returns true if the entry is in the Window or Main space. InWindow() bool // MakeWindow sets the status to the Window queue. MakeWindow() // InMainProbation returns true if the entry is in the Main space's probation queue. InMainProbation() bool // MakeMainProbation sets the status to the Main space's probation queue. MakeMainProbation() // InMainProtected returns if the entry is in the Main space's protected queue. InMainProtected() bool // MakeMainProtected sets the status to the Main space's protected queue. MakeMainProtected() }
Node is a cache entry.
func CastPointerToB ¶
func CastPointerToB[K comparable, V any](ptr unsafe.Pointer) Node[K, V]
CastPointerToB casts a pointer to B.
func CastPointerToBE ¶
func CastPointerToBE[K comparable, V any](ptr unsafe.Pointer) Node[K, V]
CastPointerToBE casts a pointer to BE.
func CastPointerToBER ¶
func CastPointerToBER[K comparable, V any](ptr unsafe.Pointer) Node[K, V]
CastPointerToBER casts a pointer to BER.
func CastPointerToBERW ¶
func CastPointerToBERW[K comparable, V any](ptr unsafe.Pointer) Node[K, V]
CastPointerToBERW casts a pointer to BERW.
func CastPointerToBEW ¶
func CastPointerToBEW[K comparable, V any](ptr unsafe.Pointer) Node[K, V]
CastPointerToBEW casts a pointer to BEW.
func CastPointerToBR ¶
func CastPointerToBR[K comparable, V any](ptr unsafe.Pointer) Node[K, V]
CastPointerToBR casts a pointer to BR.
func CastPointerToBRW ¶
func CastPointerToBRW[K comparable, V any](ptr unsafe.Pointer) Node[K, V]
CastPointerToBRW casts a pointer to BRW.
func CastPointerToBS ¶
func CastPointerToBS[K comparable, V any](ptr unsafe.Pointer) Node[K, V]
CastPointerToBS casts a pointer to BS.
func CastPointerToBSE ¶
func CastPointerToBSE[K comparable, V any](ptr unsafe.Pointer) Node[K, V]
CastPointerToBSE casts a pointer to BSE.
func CastPointerToBSER ¶
func CastPointerToBSER[K comparable, V any](ptr unsafe.Pointer) Node[K, V]
CastPointerToBSER casts a pointer to BSER.
func CastPointerToBSR ¶
func CastPointerToBSR[K comparable, V any](ptr unsafe.Pointer) Node[K, V]
CastPointerToBSR casts a pointer to BSR.
func CastPointerToBW ¶
func CastPointerToBW[K comparable, V any](ptr unsafe.Pointer) Node[K, V]
CastPointerToBW casts a pointer to BW.
func NewB ¶
func NewB[K comparable, V any](key K, value V, expiresAt, refreshableAt int64, weight uint32) Node[K, V]
NewB creates a new B.
func NewBE ¶
func NewBE[K comparable, V any](key K, value V, expiresAt, refreshableAt int64, weight uint32) Node[K, V]
NewBE creates a new BE.
func NewBER ¶
func NewBER[K comparable, V any](key K, value V, expiresAt, refreshableAt int64, weight uint32) Node[K, V]
NewBER creates a new BER.
func NewBERW ¶
func NewBERW[K comparable, V any](key K, value V, expiresAt, refreshableAt int64, weight uint32) Node[K, V]
NewBERW creates a new BERW.
func NewBEW ¶
func NewBEW[K comparable, V any](key K, value V, expiresAt, refreshableAt int64, weight uint32) Node[K, V]
NewBEW creates a new BEW.
func NewBR ¶
func NewBR[K comparable, V any](key K, value V, expiresAt, refreshableAt int64, weight uint32) Node[K, V]
NewBR creates a new BR.
func NewBRW ¶
func NewBRW[K comparable, V any](key K, value V, expiresAt, refreshableAt int64, weight uint32) Node[K, V]
NewBRW creates a new BRW.
func NewBS ¶
func NewBS[K comparable, V any](key K, value V, expiresAt, refreshableAt int64, weight uint32) Node[K, V]
NewBS creates a new BS.
func NewBSE ¶
func NewBSE[K comparable, V any](key K, value V, expiresAt, refreshableAt int64, weight uint32) Node[K, V]
NewBSE creates a new BSE.
func NewBSER ¶
func NewBSER[K comparable, V any](key K, value V, expiresAt, refreshableAt int64, weight uint32) Node[K, V]
NewBSER creates a new BSER.