redis

package
v0.0.0-...-b6a2cce Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 8, 2018 License: MIT Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetRedisHandler

func GetRedisHandler() *redis.Client

func NewRedisConnector

func NewRedisConnector() ImportExporter

func Noop

func Noop()

Types

type RedisConnector

type RedisConnector struct {
	// contains filtered or unexported fields
}

func (RedisConnector) BulkInsertProxyIPs

func (r RedisConnector) BulkInsertProxyIPs(ips []ProxyIP) error

func (RedisConnector) GetLimitProxyIP

func (r RedisConnector) GetLimitProxyIP(limit int) ([]string, error)

TODO: 增加查询IP信息的接口

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL