package
0.10.4
Repository: https://github.com/useinsider/go-pkg.git
Documentation: pkg.go.dev

# 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 { ..

# Structs

No description provided by the author

# Interfaces

No description provided by the author