aboutsummaryrefslogtreecommitdiff
path: root/cache
diff options
context:
space:
mode:
Diffstat (limited to 'cache')
-rw-r--r--cache/cache.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/cache/cache.go b/cache/cache.go
index b311efa..bac7ea8 100644
--- a/cache/cache.go
+++ b/cache/cache.go
@@ -11,8 +11,10 @@ type Cache struct {
lock sync.RWMutex
}
-func New() *Cache {
- return &Cache{
+var C *Cache
+
+func init() {
+ C = &Cache{
m: map[string]db.Paste{},
}
}