Skip to content

jdxyw/lru-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lru-go

Go Go Report Card GitHub license codecov

Install

Install this package through go get.

go get github.com/jdxyw/lru-go

Simple Usage

package main

import (
	"fmt"
	"github.com/jdxyw/lru-go"
)

func main() {
	cache := lru.NewCache(100)
	cache.Add("Go", 1)
	val, _ := cache.Get("Go")

	fmt.Printf("The value for Go is %v.", val)
}

Releases

No releases published

Packages

No packages published

Languages