Documentation
¶
Index ¶
- func GzipJSONGetSet[T any](ctx context.Context, c RedisSetter, key string, v T) (bool, error)
- func GzipJSONSet[T any](ctx context.Context, c RedisSetter, key string, v T, expiration time.Duration) error
- func IndexVacuum(ctx context.Context, c RedisIndexer, indexKey string, dataKeyPrefix Prefix) error
- func JSONGet[T any](ctx context.Context, c RedisGetter, key string) (*T, error)
- func MarshalGzipJSON[T any](v T) (string, error)
- func UnmarshalGzipJSON[T any](payload string) (*T, error)
- type Broadcast
- type BroadcastRediser
- type Prefix
- type RedisGetter
- type RedisIndexer
- type RedisSetter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GzipJSONGetSet ¶
func GzipJSONSet ¶
func IndexVacuum ¶
func MarshalGzipJSON ¶
func UnmarshalGzipJSON ¶
Types ¶
type Broadcast ¶
type Broadcast[T any] struct { // contains filtered or unexported fields }
func NewBroadcast ¶
func NewBroadcast[T any](client BroadcastRediser, key string) (*Broadcast[T], error)
type BroadcastRediser ¶
type RedisGetter ¶
type RedisIndexer ¶
Click to show internal directories.
Click to hide internal directories.