Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/gocolly/redisstorage

Redis based storage backend for Colly
https://github.com/gocolly/redisstorage

Last synced: 9 days ago
JSON representation

Redis based storage backend for Colly

Awesome Lists containing this project

README

        

# Redis Storage for Colly

This is a redis based storage backend for [Colly](https://github.com/gocolly/colly) collectors.

[![GoDoc](https://godoc.org/github.com/gocolly/redisstorage?status.svg)](https://godoc.org/github.com/gocolly/redisstorage)

## Install

```
go get -u github.com/gocolly/redisstorage
```

## Usage

```go
import (
"github.com/gocolly/colly"
"github.com/gocolly/redisstorage"
)
```

```go
c := colly.NewCollector()

storage := &redisstorage.Storage{
Address: "127.0.0.1:6379",
Password: "",
DB: 0,
Prefix: "job01",
}

err := c.SetStorage(storage)
if err != nil {
panic(err)
}
```

## Bugs

Bugs or suggestions? Visit the [issue tracker](https://github.com/gocolly/redisstorage/issues) or join `#colly` on freenode