Documentation ¶
Index ¶
- func NewAdapter(opt *RingOptions) cache.Adapter
- type Adapter
- func (a *Adapter) Exists(prefix, key string) bool
- func (a *Adapter) Get(prefix, key string) ([]byte, bool)
- func (a *Adapter) Release(prefix, key string)
- func (a *Adapter) ReleaseIfStartsWith(key string)
- func (a *Adapter) ReleasePrefix(prefix string)
- func (a *Adapter) Set(prefix, key string, response []byte)
- type RingOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAdapter ¶
func NewAdapter(opt *RingOptions) cache.Adapter
NewAdapter initializes Redis adapter.
Types ¶
type Adapter ¶
type Adapter struct {
// contains filtered or unexported fields
}
Adapter is the memory adapter data structure.
func (*Adapter) ReleaseIfStartsWith ¶
ReleaseIfStartsWith ...
type RingOptions ¶
type RingOptions redis.RingOptions
RingOptions exports go-redis RingOptions type.
Click to show internal directories.
Click to hide internal directories.