module
Version:
v0.0.0-...-1a87dc3
Opens a new window with list of versions in this module.
Published: Apr 7, 2023
License: MIT
Opens a new window with license information.
README
¶
go-local-cache
Implement a local cache in Go that meets the following requirements:
- Can
Get a value from the local cache using a key
- Can
Set a key/value pair to the local cache
- Keys are string type and value can be any types
- Item in the local cache expires in 30 seconds
Set will overwrite the existed item and reset the timer (when the key is the same)
Also meets other requirements:
- Separate interface & implementation in different files
- Write unit test for each methods in interface
Directories
¶
Click to show internal directories.
Click to hide internal directories.