Skip to content

PrasannaC/SimpleCache

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SimpleCache

A simple n-way set associative, LRU cache implemented in Go

Usage

import "SimpleCache/Cache"

var cache Cache.ICache
// To create a cache with 10 sets of length 3 each.
cache = Cache.CreateCache(3, 10)
// The key must be a string
// Value can be any type
cache.Put("Key",value)
cachedValue = cache.Get("key")

About

A simple n-way set associative cache implemented in Go

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages