From 8763022c77f0ad8edf6578962a524715d99e8d39 Mon Sep 17 00:00:00 2001 From: Horus3 Date: Tue, 24 Feb 2015 16:33:24 +0100 Subject: Session storage. Add new jobs over Webpage. Improved makefile. --- app/cache.go | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'app/cache.go') 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) +} -- cgit v1.2.3