Documentation ¶
Index ¶
- Constants
- Variables
- func Dial(network, address string) (redis.Conn, error)
- func GetCoverage(c redis.Conn, repo string) (float64, error)
- func GetRepo(c redis.Conn, repo string) (string, bool, error)
- func NewPool(network, address, password string) (pool *redis.Pool, err error)
- func SetCache(c redis.Conn, repo, content, coverage string) error
- func SetStats(c redis.Conn, repo string) error
- func Top(c redis.Conn, key string, count int) ([]top, error)
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 ¶
View Source
var SHA string
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.