A middleware that provides the cache management for Flamego

Codecov GoDoc Sourcegraph

Package cache is a middleware that provides the cache management for Flamego.


The minimum requirement of Go is 1.16.

go get

Getting started

package main

import (


func main() {
	f := flamego.Classic()
	f.Get("/", func(cache cache.Cache) {
		_ = cache.Set("cooldown", true, time.Minute)
		cooldown, ok := cache.Get("cooldown").(bool)
		// ...


This project is under the MIT License. See the LICENSE file for the full license text.


Leave a Reply

Your email address will not be published. Required fields are marked *

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

GIPHY App Key not set. Please check settings

SOULMATE LYRICS – Akull, Aastha Gill

TERI AKHEEYAN LYRICS – Qismat 2 | Ammy Virk