Skip to content

std-swift/LRUCache

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LRUCache

Limited size cache

Importing

import LRUCache
dependencies: [
	.package(url: "https://github.com/std-swift/LRUCache.git",
	         from: "0.1.0")
],
targets: [
	.target(
		name: "",
		dependencies: [
			"LRUCache"
		]),
]

Using

var cache = LRUCache<Int, Int>(capacity: 1)
cache.set(1, value: 5)
_ = cache.get(1) // 5

About

No description or website provided.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages