Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache interface { Get(key string) ([]byte, error) Set(key string, value any, expiration time.Duration) error Drop(key string) error Incr(key string) error Exists(key string) (bool, error) Subscribe(channel string) <-chan *redis.Message Publish(channel string, msg []byte) error Ping() error }
Cache is an in-memory storage to cache data.
func NewRedisClient ¶
NewRedisClient returns a new redis client.
Click to show internal directories.
Click to hide internal directories.