(callback)
| 206 | |
| 207 | // Supply the number of keys in the datastore to the callback function. |
| 208 | function length(callback) { |
| 209 | var self = this; |
| 210 | var promise = self.keys().then(function(keys) { |
| 211 | return keys.length; |
| 212 | }); |
| 213 | |
| 214 | executeCallback(promise, callback); |
| 215 | return promise; |
| 216 | } |
| 217 | |
| 218 | // Remove an item from the store, nice and simple. |
| 219 | function removeItem(key, callback) { |
nothing calls this directly
no test coverage detected
searching dependent graphs…