zcache.go 274 Bytes
Newer Older
Vladimir Barsukov's avatar
Vladimir Barsukov committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
package zcache

import (
	"github.com/patrickmn/go-cache"
	"time"
)

func New(defaultExpiration, cleanupInterval time.Duration) *cache.Cache {
	return cache.New(defaultExpiration, cleanupInterval)
}

func Default() *cache.Cache {
	return cache.New(time.Hour, time.Minute)
}