Versions in this module Expand all Collapse all v0 v0.0.1 Mar 23, 2016 Changes in this version + type Cache struct + func New(numCachedIncomes int) *Cache + func (c *Cache) GetLatestConfig() models.Config + func (c *Cache) GetLatestIncomes() []interface{} + func (c *Cache) GetLatestTotalReward() models.TotalReward + func (c *Cache) GetRewardRatesByType(t string) []models.RewardRate + func (c *Cache) IncrementTotalReward(t time.Time, delta int64) + func (c *Cache) InsertIncome(income interface{}) + func (c *Cache) SetLatestConfig(config models.Config) + func (c *Cache) SetRewardRates(t string, rates []models.RewardRate)