Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RedisStorage ¶
type RedisStorage struct { // Address is the redis server address Address string // Password is the password for the redis server Password string // DB is the redis database. Default is 0 DB int // Prefix is an optional string in the keys. It can be used // to use one redis database for independent scraping tasks. Prefix string // Client is the redis connection Client *redis.Client // Expiration time for Visited keys. After expiration pages // are to be visited again. Expires time.Duration // contains filtered or unexported fields }
RedisStorage implements the redis storage backend
func (*RedisStorage) Clear ¶
func (s *RedisStorage) Clear() error
Clear removes all entries from the storage
Click to show internal directories.
Click to hide internal directories.