Reputation: 1360
I am saving some bulk data in chrome browser local storage using
chrome.storage.sync.set({'data': request.data }, function() {
console.log('Settings saved');
});.
when data gets bigger to certain level, data is not getting saved, Is there any memory restriction.
Upvotes: 0
Views: 782
Reputation: 1960
Yes there is a limit, it is laid out quite clearly in the docs.
Looks like for chrome.storage.sync
the maximum total storage size is 800kB [0].
For chrome.storage.local
the maximum is 5MB [0], unless you request unlimitedStorage so this API should be more useful to you.
[0] Source
Upvotes: 1