Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitRedis ¶
func InitRedis(opts ...*ConnectOption)
Types ¶
type ConnectOption ¶
func ConnectOptionFromProfile ¶
func ConnectOptionFromProfile() *ConnectOption
type RedisCache ¶
type RedisCache struct {
// contains filtered or unexported fields
}
Cache is Redis cache adapter.
func RedisNewCache ¶
func RedisNewCache(constr string, password string) *RedisCache
func (*RedisCache) Delete ¶
func (rc *RedisCache) Delete(key string) error
Delete delete cache in redis.
func (*RedisCache) IsExist ¶
func (rc *RedisCache) IsExist(key string) bool
IsExist check cache's existence in redis.
Click to show internal directories.
Click to hide internal directories.