# README
Cacheable Package
This is a memory level cache wrapper. You just need to give it a function, and it will handle caching for you.
Usage in Apps
package main
import (
"time"
"github.com/useinsider/go-pkg/inscacheable"
)
var ttl = 1 * time.Minute
var cache = inscacheable.Cacheable(somefunctocache, &ttl)
func somefunctocache(anyparam interface{}) interface{} {
return nil
}
# Functions
Cacheable is the main function that should be used as func getter(key string) string { ..
# Interfaces
No description provided by the author