summaryrefslogtreecommitdiff
path: root/app/cache.go
diff options
context:
space:
mode:
Diffstat (limited to 'app/cache.go')
-rw-r--r--app/cache.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/cache.go b/app/cache.go
index f75f317..4e8ece2 100644
--- a/app/cache.go
+++ b/app/cache.go
@@ -31,3 +31,9 @@ func DelCache(key string) error {
_, err := c.Do("DEL", key)
return err
}
+
+func FillCache() error {
+ h := []Host{}
+ Db.Find(&h)
+ return CacheHosts("database", h)
+}