//
pkg.gl
Category
github.com/JohnstoneDev/pokedexcli
internal
pokecache
package
0.0.0-20240915160240-91f7124994a4
Repository:
https://github.com/johnstonedev/pokedexcli.git
Documentation:
pkg.go.dev
Overview
Versions
1
Dependencies
5
Dependents
2
Files
70 SLOC
#
Functions
NewCache
function to create cache, accepts a interval parameter that will be used to clear the cache.
#
Structs
Cache
cache type has a mutex to control access in goroutines.
CacheEntry
a cache entry.