redis

package
v0.0.0-...-14d5d31 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2015 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	REDIS_POOL_SIZE   = 10
	CACHE_EXPIRE_TIME = 60 * 60 * 24 * 10         //10 days
	FRESH_CACHE_LIMIT = CACHE_EXPIRE_TIME - 60*10 //10 minutes

	TOP_SCRIPT = "" /* 178-byte string literal not displayed */
)

Variables

Functions

func Dial

func Dial(network, address string) (redis.Conn, error)

func GetCoverage

func GetCoverage(c redis.Conn, repo string) (float64, error)

func GetRepo

func GetRepo(c redis.Conn, repo string) (string, bool, error)

func NewPool

func NewPool(network, address, password string) (pool *redis.Pool, err error)

func SetCache

func SetCache(c redis.Conn, repo, content, coverage string) error

func SetStats

func SetStats(c redis.Conn, repo string) error

func Top

func Top(c redis.Conn, key string, count int) ([]top, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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