Documentation ¶
Index ¶
- func NewCache(js jconf.SubConfig) (cache rproxymod.Cache, err error)
- type CacheConfig
- type NullCache
- func (nc *NullCache) Clear()
- func (nc *NullCache) Close() error
- func (nc *NullCache) Delete(key []byte)
- func (nc *NullCache) Get(key []byte) (value []byte, err error)
- func (nc *NullCache) GetAndStore(key []byte, fetcher rproxymod.CacheFetcher) (value []byte, err error)
- func (nc *NullCache) GetCacheStats() (stats *rproxymod.CacheStats)
- func (nc *NullCache) Set(key []byte, value []byte, ttl time.Duration) error
- type YbcCache
- func (yc *YbcCache) Clear()
- func (yc *YbcCache) Close() error
- func (yc *YbcCache) Delete(key []byte)
- func (yc *YbcCache) Get(key []byte) (value []byte, err error)
- func (yc *YbcCache) GetAndStore(key []byte, fetcher rproxymod.CacheFetcher) (value []byte, err error)
- func (yc *YbcCache) GetCacheStats() (stats *rproxymod.CacheStats)
- func (yc *YbcCache) Set(key []byte, value []byte, ttl time.Duration) error
- type YbcConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CacheConfig ¶
type CacheConfig struct { Type string Config *jconf.OptionalSubConfig `json:",omitempty"` }
type NullCache ¶
type NullCache struct {
// contains filtered or unexported fields
}
func NewNullCache ¶
func NewNullCache() (cacher *NullCache)
func (*NullCache) GetAndStore ¶
func (*NullCache) GetCacheStats ¶
func (nc *NullCache) GetCacheStats() (stats *rproxymod.CacheStats)
type YbcCache ¶
type YbcCache struct {
// contains filtered or unexported fields
}
Cache imlementation based on 'valyala/ybc' library.
func (*YbcCache) GetAndStore ¶
func (*YbcCache) GetCacheStats ¶
func (yc *YbcCache) GetCacheStats() (stats *rproxymod.CacheStats)
Click to show internal directories.
Click to hide internal directories.