Documentation ¶
Index ¶
- type Cache
- func (c *Cache) Get(key string) (*qpuextapi.QueryResp, bool)
- func (c *Cache) Invalidate(key string)
- func (c *Cache) Put(key string, response *qpuextapi.QueryResp, size int, client libqpu.APIClient) error
- func (c *Cache) WaitInvalidate(stream qpuapi.QPUAPI_QuerySubscribeClient, cancel context.CancelFunc, ...)
- func (c *Cache) WaitInvalidation(key string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
Cache represents an LRU cache
func (*Cache) Put ¶
func (c *Cache) Put(key string, response *qpuextapi.QueryResp, size int, client libqpu.APIClient) error
Put stores an object in a cache entry
func (*Cache) WaitInvalidate ¶
func (c *Cache) WaitInvalidate(stream qpuapi.QPUAPI_QuerySubscribeClient, cancel context.CancelFunc, key string)
WaitInvalidate ...
Click to show internal directories.
Click to hide internal directories.