Documentation
¶
Index ¶
- Constants
- Variables
- func CacheAirly(c *redis.Client, airly *pb.Airly, installation *pb.Installation) (err error)
- func CacheDepartures(c *redis.Client, deps []pb.Departure, stop *pb.Stop) (err error)
- func GetCachedAirly(c *redis.Client, installation *pb.Installation) (*pb.Airly, error)
- func GetCachedDepartures(c *redis.Client, stop *pb.Stop) (departures []pb.Departure, err error)
- func IsAirlyCached(c *redis.Client, installation *pb.Installation) (cached bool, err error)
- func IsDepartureCached(c *redis.Client, stop *pb.Stop) (cached bool, err error)
Constants ¶
View Source
const AirlyPrefix = "airly-"
View Source
const DepsPrefix = "deps-"
Variables ¶
View Source
var AirlyExpire = time.Minute * 10
View Source
var DepsExpire = time.Second * 15
Functions ¶
func CacheAirly ¶
func CacheAirly(c *redis.Client, airly *pb.Airly, installation *pb.Installation) (err error)
func CacheDepartures ¶
func GetCachedAirly ¶
func GetCachedAirly(c *redis.Client, installation *pb.Installation) (*pb.Airly, error)
func GetCachedDepartures ¶
func IsAirlyCached ¶
func IsAirlyCached(c *redis.Client, installation *pb.Installation) (cached bool, err error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.