Documentation ¶
Index ¶
- func AddEndpoints(endpoints ...string) interfaces.CacheOption
- func WithCollection(collection string) interfaces.CacheOption
- func WithDB(db int) interfaces.CacheOption
- func WithPassowrd(password string) interfaces.CacheOption
- type Ledis
- func (l *Ledis) Close() error
- func (l *Ledis) Delete(keys ...string) error
- func (l *Ledis) Exists(keys ...string) (bool, error)
- func (l *Ledis) Init() error
- func (l *Ledis) IsMember(value string) (bool, error)
- func (l *Ledis) Keys() (interface{}, error)
- func (l *Ledis) Put(key string, value interface{}) error
- func (l *Ledis) Set(value string) error
- func (l *Ledis) Take(key string) (interface{}, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddEndpoints ¶
func AddEndpoints(endpoints ...string) interfaces.CacheOption
func WithCollection ¶
func WithCollection(collection string) interfaces.CacheOption
func WithDB ¶
func WithDB(db int) interfaces.CacheOption
func WithPassowrd ¶
func WithPassowrd(password string) interfaces.CacheOption
Types ¶
type Ledis ¶
type Ledis struct {
// contains filtered or unexported fields
}
func New ¶
func New(options ...interfaces.CacheOption) (*Ledis, error)
Click to show internal directories.
Click to hide internal directories.