Skip to content

SergeyUkraine/cacheUdemy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cacheUdemy

cacheUdemy helps you to use your memory for set/get/delete some data.

See it in action:

Example

package main

import (
	"fmt"
	"github.com/SergeyUkraine/cacheUdemy"
)

func main() {
	cache := cacheUdemy.NewCache()

	cache.SetKey("userId", 42)

	userId := cache.GetKey("userId")

	fmt.Println(userId)

	cache.Delete("userId")

	userId = cache.GetKey("userId")

	fmt.Println(userId)
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages