gocolly/colly

[Feature Request] InMemoryStorage supports TTL for visited URLs

Open

#136 opened on May 9, 2018

View on GitHub
 (1 comment) (1 reaction) (0 assignees)Go (1,837 forks)batch import
enhancementhelp wanted

Repository metrics

Stars
 (24,898 stars)
PR merge metrics
 (Avg merge 15h 38m) (2 merged PRs in 30d)

Description

type InMemoryStorage struct {
  // TTL
  visitedURLsTTL time.Duration
}

I think handling TTL for visited URLs internally is quite useful, and we can make redisstorage to support TTL as well. @asciimoo WDYT

Contributor guide