Documentation ¶
Index ¶
- func Factory(olricConfiguration core.CacheProvider, logger core.Logger, stale time.Duration) (core.Storer, error)
- type Olric
- func (provider *Olric) Delete(key string)
- func (provider *Olric) DeleteMany(key string)
- func (provider *Olric) Get(key string) []byte
- func (provider *Olric) GetMultiLevel(key string, req *http.Request, validator *core.Revalidator) (fresh *http.Response, stale *http.Response)
- func (provider *Olric) Init() error
- func (provider *Olric) ListKeys() []string
- func (provider *Olric) MapKeys(prefix string) map[string]string
- func (provider *Olric) Name() string
- func (provider *Olric) Reconnect()
- func (provider *Olric) Reset() error
- func (provider *Olric) Set(key string, value []byte, duration time.Duration) error
- func (provider *Olric) SetMultiLevel(baseKey, variedKey string, value []byte, variedHeaders http.Header, ...) error
- func (provider *Olric) Uuid() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Olric ¶
type Olric struct { *olric.ClusterClient // contains filtered or unexported fields }
Olric provider type.
func (*Olric) Delete ¶
Delete method will delete the response in Olric provider if exists corresponding to key param.
func (*Olric) DeleteMany ¶
DeleteMany method will delete the responses in Olric provider if exists corresponding to the regex key param.
func (*Olric) GetMultiLevel ¶
func (provider *Olric) GetMultiLevel(key string, req *http.Request, validator *core.Revalidator) (fresh *http.Response, stale *http.Response)
GetMultiLevel tries to load the key and check if one of linked keys is a fresh/stale candidate.
Click to show internal directories.
Click to hide internal directories.