Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Go Cache

Go Cache is an in-memory cache to keep any type values.

See it in action:

Example

package main

import (
	"fmt"
	"github.com/bogutskyy/go-cache"
)

func main() {
	c := cache.New()

	c.Set("a", "a")

	if "a" == c.Get("a") {
		fmt.Println("the value is cached")
	}

	c.Delete("a")

	if nil == c.Get("a") {
		fmt.Println("the value is deleted from the cache")
	}
}

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages