Documentation ¶
Overview ¶
Package clientcache provides support for caching requests as a client
Index ¶
- type Cache
- type RistrettoCache
- func (c *RistrettoCache) GetEntry(key string, value interface{}) (bool, bool, error)
- func (c *RistrettoCache) SetEntry(key string, value interface{}, costWeight float32, ttl time.Duration) error
- func (c *RistrettoCache) SetNonexistentEntry(key string, cost float32, ttl time.Duration)
- func (c *RistrettoCache) UnsetEntry(key string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type RistrettoCache ¶
type RistrettoCache struct {
// contains filtered or unexported fields
}
func (*RistrettoCache) GetEntry ¶
func (c *RistrettoCache) GetEntry(key string, value interface{}) (bool, bool, error)
func (*RistrettoCache) SetNonexistentEntry ¶
func (c *RistrettoCache) SetNonexistentEntry(key string, cost float32, ttl time.Duration)
func (*RistrettoCache) UnsetEntry ¶
func (c *RistrettoCache) UnsetEntry(key string)
Click to show internal directories.
Click to hide internal directories.