Skip to content

Latest commit

 

History

History
33 lines (21 loc) · 443 Bytes

README.md

File metadata and controls

33 lines (21 loc) · 443 Bytes

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)
}