Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RedisConnString ¶
type RedisConnString string
type RedisEngine ¶
type RedisEngine interface { Configure(...Option) RedisEngine Client() *redisV9.Client Set(key string, value any, timeToLive ...time.Duration) error Get(key string) ([]byte, bool, error) Invalidate(key string) error InvalidatePrefix(prefix string) error Close() }
func NewRedisClient ¶
func NewRedisClient(config *configs.Redis) (RedisEngine, error)
Click to show internal directories.
Click to hide internal directories.