swrev
swrev copied to clipboard
new localStorage cache
The new cache class with localStorage implementation
- Logic for accessing localStorage was implemented for every operation involving the cache (elements)
- Elements are first checked to obtain a value, and if the value does not exist, the localStorage is then accessed
- Method set() was set to async
Maybe some inheritance work could be done, but I chose to create a whole new class.