Cache is used in the messages.html template.
| 18 | |
| 19 | // Cache is used in the messages.html template. |
| 20 | type Cache struct { |
| 21 | Count int64 `json:"count"` |
| 22 | Total int64 `json:"total"` |
| 23 | Messages []Message `json:"messages"` |
| 24 | } |
| 25 | |
| 26 | // GetCache gets cached data from Redis. |
| 27 | func GetCache(c *redis.Client) (*Cache, error) { |
nothing calls this directly
no outgoing calls
no test coverage detected