Documentation ¶
Index ¶
- type S3FIFO
- func (s *S3FIFO[K, V]) Close()
- func (s *S3FIFO[K, V]) Contains(key K) (ok bool)
- func (s *S3FIFO[K, V]) Get(key K) (value V, ok bool)
- func (s *S3FIFO[K, V]) Len() int
- func (s *S3FIFO[K, V]) Peek(key K) (value V, ok bool)
- func (s *S3FIFO[K, V]) Purge()
- func (s *S3FIFO[K, V]) Remove(key K) (ok bool)
- func (s *S3FIFO[K, V]) Set(key K, value V)
- func (s *S3FIFO[K, V]) SetOnEvicted(callback types.OnEvictCallback[K, V])
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type S3FIFO ¶
type S3FIFO[K comparable, V any] struct { // contains filtered or unexported fields }
func (*S3FIFO[K, V]) SetOnEvicted ¶ added in v1.0.0
func (s *S3FIFO[K, V]) SetOnEvicted(callback types.OnEvictCallback[K, V])
Click to show internal directories.
Click to hide internal directories.