code: function getCacheSize() {
        var defer = $q.defer();
  
        _checkImgCacheReady()
          .then(function() {
            defer.resolve(ImgCache.getCurrentSize());
          })
          .catch(defer.reject);
  
        return defer.promise;
      }
docs: Gets local cache size in bytes.