cache

package
v2.2.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2018 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Ban

func Ban(key string, h int) error

Ban one station

func BuildKeyBanStation

func BuildKeyBanStation(s traincat.Station) string

BuildKeyBanStation return key for one station ban

func BuildKeyIssue

func BuildKeyIssue(i model.Issue) string

BuildKeyIssue return key for one issue

func Init

func Init()

Init redis

func IsKeyExist

func IsKeyExist(key string) bool

IsKeyExist return true if key currently exist in redis

func SetExpiry

func SetExpiry(key string, h int) error

SetExpiry create new key/value they can expire

Types

This section is empty.

Jump to

Keyboard shortcuts

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