Documentation ¶
Index ¶
- type RedisClient
- func (s *RedisClient) GetBool(key string) (bool, error)
- func (s *RedisClient) GetInt(key string) (int, error)
- func (s *RedisClient) GetObject(obj interface{}, key string) error
- func (s *RedisClient) GetString(key string) (string, error)
- func (s *RedisClient) SetBool(key string, value bool) error
- func (s *RedisClient) SetBoolWithExpiration(key string, value bool, expiration time.Duration) error
- func (s *RedisClient) SetInt(key string, value int) error
- func (s *RedisClient) SetIntWithExpiration(key string, value int, expiration time.Duration) error
- func (s *RedisClient) SetObject(key string, value interface{}) error
- func (s *RedisClient) SetObjectWithExpiration(key string, value interface{}, expiration time.Duration) error
- func (s *RedisClient) SetString(key string, value string) error
- func (s *RedisClient) SetStringWithExpiration(key string, value string, expiration time.Duration) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RedisClient ¶
func NewRedisClient ¶
func NewRedisClient(host string, port int, password string, db int) *RedisClient
func (*RedisClient) GetObject ¶
func (s *RedisClient) GetObject(obj interface{}, key string) error
func (*RedisClient) SetBoolWithExpiration ¶
func (*RedisClient) SetIntWithExpiration ¶
func (*RedisClient) SetObject ¶
func (s *RedisClient) SetObject(key string, value interface{}) error
func (*RedisClient) SetObjectWithExpiration ¶
func (s *RedisClient) SetObjectWithExpiration(key string, value interface{}, expiration time.Duration) error
func (*RedisClient) SetStringWithExpiration ¶
Click to show internal directories.
Click to hide internal directories.