Documentation ¶
Index ¶
- type SimpleKeyRedis
- func (skr *SimpleKeyRedis) Flush(ctx context.Context, key string) error
- func (skr *SimpleKeyRedis) Get(ctx context.Context, key string) ([]byte, error)
- func (skr *SimpleKeyRedis) MustFind(ctx context.Context, matchKey string) ([][]byte, error)
- func (skr *SimpleKeyRedis) Set(ctx context.Context, key string, value []byte, keyExpiration time.Duration) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SimpleKeyRedis ¶
type SimpleKeyRedis struct {
// contains filtered or unexported fields
}
SimpleKeyRedis manages operations with simple key/value storage in redis
func NewSimpleKeyRedis ¶
func NewSimpleKeyRedis(redConn *redis.Client) SimpleKeyRedis
NewSimpleKeyRedis handles the creation of a SimpleKeyRedis object
func (*SimpleKeyRedis) Flush ¶
func (skr *SimpleKeyRedis) Flush(ctx context.Context, key string) error
Flush the received key without caring about the key existency
func (*SimpleKeyRedis) Get ¶
Get a key value
func (*SimpleKeyRedis) MustFind ¶
MustFind at least one key value matching matchKey
Click to show internal directories.
Click to hide internal directories.