Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InMemoryStorage ¶
type InMemoryStorage[T any] struct { // contains filtered or unexported fields }
func NewInMemoryStorage ¶
func NewInMemoryStorage[T any]() *InMemoryStorage[T]
func (*InMemoryStorage[T]) Delete ¶
func (s *InMemoryStorage[T]) Delete(key int64)
func (*InMemoryStorage[T]) Get ¶
func (s *InMemoryStorage[T]) Get(key int64) (T, bool)
func (*InMemoryStorage[T]) Set ¶
func (s *InMemoryStorage[T]) Set(key int64, value T)
Click to show internal directories.
Click to hide internal directories.