Every function in persistence.js now returns a promise.