Documentation ¶
Index ¶
- func CreatePool(host string, port, db int, password string) *redis.Pool
- type Service
- func (s *Service) Add(key string, value interface{}, expire time.Duration) error
- func (s *Service) Decrement(key string, data uint64) (uint64, error)
- func (s *Service) Delete(key string) error
- func (s *Service) Exists(key string) bool
- func (s *Service) Flush() error
- func (s *Service) Get(key string, value interface{}) error
- func (s *Service) Increment(key string, data uint64) (uint64, error)
- func (s *Service) Replace(key string, data interface{}, expire time.Duration) error
- func (s *Service) Set(key string, value interface{}, expire time.Duration) error
- func (s *Service) SetExpire(key string, expires time.Duration) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.