getSets
Gets the sets that are available in the connection.
function()
Returns a promise that resolves to a list of Set objects contained in the connection. This is useful for querying a cacheConnection if it will be able to satisfy a request.
An example response might look like:
connection.getSets().then(function(sets){
sets //-> [
// {complete: true},
// {userId: 5, start: 10, end: 20}
//]
})
Use
Extensions like localstorage-cache implement
.getSets
to provide the sets they contain.