ng2-cache
ng2-cache copied to clipboard
Size issue not throwing an exception
We had an issue where a data table was increased in size, exceeding the 5Mb limit for local storage. It became a much bigger debugging and resolving issue because no exception was thrown. Reading from the cache simply returned null, which caused the main app to resort to the fallback method of reading from the API. An exception when writing more then the max limit would have been very welcome.