Documentation
¶
Index ¶
- type RedisListService
- func (e *RedisListService) BPop(key string, timeout time.Duration) (string, error)
- func (e *RedisListService) GetAll(key string) ([]string, error)
- func (e *RedisListService) GetRange(key string, start int64, end int64) ([]string, error)
- func (e *RedisListService) IsBlock(key string) (bool, error)
- func (e *RedisListService) IsBusy(key string, percentage int64) (bool, error)
- func (e *RedisListService) KBPop(key string, timeout time.Duration) (string, error)
- func (e *RedisListService) KPush(key string, value string) error
- func (e *RedisListService) Pop(key string) (string, error)
- func (e *RedisListService) Push(key string, value string) error
- func (e *RedisListService) Size(key string) (int64, error)
- type RedisValueService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RedisListService ¶
type RedisListService struct {
MaxSize int64 // 最大数量
}
func (*RedisListService) GetAll ¶ added in v1.0.1
func (e *RedisListService) GetAll(key string) ([]string, error)
func (*RedisListService) IsBusy ¶
func (e *RedisListService) IsBusy(key string, percentage int64) (bool, error)
Click to show internal directories.
Click to hide internal directories.