Documentation
¶
Index ¶
- Variables
- type Config
- type Service
- func (service *Service) Add(key string, members ...any) (int64, error)
- func (service *Service) Delete(keys ...string) error
- func (service *Service) Drop(key string, members ...any) (int64, error)
- func (service *Service) Get(key string) (string, bool, error)
- func (service *Service) GetBool(key string) (bool, bool, error)
- func (service *Service) IncludesMany(key string, members ...string) ([]bool, error)
- func (service *Service) IncludesOne(key string, member any) (bool, error)
- func (service *Service) Keys(template string) ([]string, error)
- func (service *Service) Scan(template string, count int64) ([]string, error)
- func (service *Service) Set(key string, value any, ttl time.Duration) error
- func (service *Service) SetIfNotExists(key string, value any, ttl time.Duration) (bool, error)
- func (service *Service) Size(key string) (int64, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ConfigToken = gioc.NewToken("RedisConfig")
View Source
var Module = gioc.NewModule("RedisModule"). Global(). Provide( gioc.FactoryProvider( ServiceToken, gioc.NewFactory( ServiceInjections, gioc.Singleton, NewService, ), true, ), )
View Source
var ServiceInjections = react.InjectFromBase(ConfigToken)
View Source
var ServiceToken = gioc.NewToken("RedisService")
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
react.BaseConfigurableService[*Config]
// contains filtered or unexported fields
}
func NewService ¶
func NewService(injections gioc.Injections) (*Service, error)
func (*Service) IncludesMany ¶
func (*Service) IncludesOne ¶
func (*Service) SetIfNotExists ¶
Click to show internal directories.
Click to hide internal directories.