Documentation
¶
Index ¶
- type RedisClient
- func (rdb *RedisClient) Close() error
- func (rdb *RedisClient) Get(key string) (string, error)
- func (rdb *RedisClient) Publish(key string, value string) error
- func (rdb *RedisClient) Set(key string, value string, ttl time.Duration) error
- func (rdb *RedisClient) Subscribe(ctx context.Context, key string) (*redis.PubSub, chan []byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RedisClient ¶
type RedisClient struct { Client *redis.Client // contains filtered or unexported fields }
RedisClient
func NewRedisClient ¶
RedisClient
func (*RedisClient) Publish ¶
func (rdb *RedisClient) Publish(key string, value string) error
Publish
Click to show internal directories.
Click to hide internal directories.