diff options
| author | Horus3 | 2015-02-24 16:33:24 +0100 |
|---|---|---|
| committer | Horus3 | 2015-02-24 16:33:24 +0100 |
| commit | 8763022c77f0ad8edf6578962a524715d99e8d39 (patch) | |
| tree | c5b2557c56ebad2929cd02951b719aeff68b73ba /app/cache.go | |
| parent | 70d080b69a1bce3125d8d0b83e23775880241763 (diff) | |
| download | statuspage-8763022c77f0ad8edf6578962a524715d99e8d39.tar.gz | |
Session storage. Add new jobs over Webpage. Improved makefile.
Diffstat (limited to 'app/cache.go')
| -rw-r--r-- | app/cache.go | 6 |
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) +} |
