muni
muni

Reputation: 1360

Is there any memory restriction chrome.storage.sync.set in Chrome Extension

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

Answers (1)

berrberr
berrberr

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

Related Questions