Documentation
¶
Index ¶
- type BigCacheCache
- func (c *BigCacheCache) Evictions() int64
- func (c *BigCacheCache) Get(key string) (io.ReadCloser, error)
- func (c *BigCacheCache) Hits() int64
- func (c *BigCacheCache) Misses() int64
- func (c *BigCacheCache) Set(key string, fh io.ReadCloser) (io.ReadCloser, error)
- func (c *BigCacheCache) Size() int64
- func (c *BigCacheCache) Unset(key string) error
- type BigCacheCacheOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BigCacheCache ¶
type BigCacheCache struct {
wof_cache.Cache
Options *BigCacheCacheOptions
// contains filtered or unexported fields
}
func (*BigCacheCache) Evictions ¶
func (c *BigCacheCache) Evictions() int64
func (*BigCacheCache) Get ¶
func (c *BigCacheCache) Get(key string) (io.ReadCloser, error)
func (*BigCacheCache) Hits ¶
func (c *BigCacheCache) Hits() int64
func (*BigCacheCache) Misses ¶
func (c *BigCacheCache) Misses() int64
func (*BigCacheCache) Set ¶
func (c *BigCacheCache) Set(key string, fh io.ReadCloser) (io.ReadCloser, error)
func (*BigCacheCache) Size ¶
func (c *BigCacheCache) Size() int64
func (*BigCacheCache) Unset ¶
func (c *BigCacheCache) Unset(key string) error
type BigCacheCacheOptions ¶
type BigCacheCacheOptions struct {
HardMaxCacheSize int
MaxEntrySize int
TimeToExpire time.Duration
}
func BigCacheCacheOptionsFromArgs ¶
func BigCacheCacheOptionsFromArgs(args map[string]string) (*BigCacheCacheOptions, error)
func DefaultBigCacheCacheOptions ¶
func DefaultBigCacheCacheOptions() (*BigCacheCacheOptions, error)
Click to show internal directories.
Click to hide internal directories.