Skip to content

Instantly share code, notes, and snippets.

@TripleDogDare
TripleDogDare / Revel Cache Viewer.go
Last active December 23, 2015 05:49
Revel Cache Viewer creates a text revel.Result that displays the cache in a readable format if it is the "InMemoryCache" (not using memchached).
package controllers
import (
"encoding/gob"
"fmt"
"github.com/robfig/revel"
"github.com/robfig/revel/cache"
"os"
"path/filepath"
"time"