Documentation ¶
Index ¶
- func Factory(etcdCfg core.CacheProvider, logger core.Logger, stale time.Duration) (core.Storer, error)
- type Etcd
- func (provider *Etcd) Delete(key string)
- func (provider *Etcd) DeleteMany(key string)
- func (provider *Etcd) Get(key string) (item []byte)
- func (provider *Etcd) GetMultiLevel(key string, req *http.Request, validator *core.Revalidator) (fresh *http.Response, stale *http.Response)
- func (provider *Etcd) Init() error
- func (provider *Etcd) ListKeys() []string
- func (provider *Etcd) MapKeys(prefix string) map[string]string
- func (provider *Etcd) Name() string
- func (provider *Etcd) Reconnect()
- func (provider *Etcd) Reset() error
- func (provider *Etcd) Set(key string, value []byte, duration time.Duration) error
- func (provider *Etcd) SetMultiLevel(baseKey, variedKey string, value []byte, variedHeaders http.Header, ...) error
- func (provider *Etcd) Uuid() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Etcd ¶
Etcd provider type.
func (*Etcd) Delete ¶
Delete method will delete the response in Etcd provider if exists corresponding to key param.
func (*Etcd) DeleteMany ¶
DeleteMany method will delete the responses in Etcd provider if exists corresponding to the regex key param.
func (*Etcd) GetMultiLevel ¶
func (provider *Etcd) 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.