MCPcopy Create free account
hub / github.com/ebosas/microservices / Cache

Struct Cache

internal/cache/cache.go:20–24  ·  view source on GitHub ↗

Cache is used in the messages.html template.

Source from the content-addressed store, hash-verified

18
19// Cache is used in the messages.html template.
20type 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.
27func GetCache(c *redis.Client) (*Cache, error) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected