Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Map ¶
Map data structure backed by Redis.
func NewMap ¶
func NewMap[K any, V any](client redis.UniversalClient, namespace string, options ...Option[K, V]) *Map[K, V]
NewMap creates a new generic map. Uses JSON key/value marshalers by default.
func (*Map[K, V]) Del ¶
Del removes a key/value from the map. Returns any errors that occurred. If the key/value does not exist, this is a no-op.
type Option ¶
Option for the Map
func WithKeyMarshaler ¶
WithKeyMarshaler allows you to configure how keys are marshaled into strings.
Click to show internal directories.
Click to hide internal directories.