I am working on gallery related web application in react.I am trying to implement image cache in my application.I used local storage to store base64 string against image url.But the local storage limit is 5mb, Whenever i reach limit i am deleting images using LRU cache mechanism.I wanted to know is there any better approach.
code:
window.localstorage.setItem(url,base64 image string)