add cache to localStorage