Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LevelDBCache ¶
type LevelDBCache struct {
// contains filtered or unexported fields
}
LevelDBCache is a cache that uses LevelDB as a backend.
func NewLevelDBCache ¶
func NewLevelDBCache(path string) (*LevelDBCache, error)
NewLevelDBCache creates a new LevelDBCache.
func (*LevelDBCache) Get ¶
func (c *LevelDBCache) Get(_ context.Context, key string) (scrapemate.Response, error)
Get gets a value from the cache.
func (*LevelDBCache) Set ¶
func (c *LevelDBCache) Set(_ context.Context, key string, value *scrapemate.Response) error
Set sets a value to the cache.
Click to show internal directories.
Click to hide internal directories.