• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

jmdobry / angular-cache / 274
92%
master: 91%

Build:
Build:
LAST BUILD BRANCH: 3.1.0
DEFAULT BRANCH: master
Ran 09 Oct 2014 02:17PM UTC
Jobs 2
Files 1
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
274

Pull #131

travis-ci

CedricGatay
Added a flag to allow storing promises

Classical use of cache:true in $http / $resources consists in storing the promise immediately.
By default angular-cache does not work this way and store the resolved value of the promise when it returns.

This is an annoying behavior change : 
 
 * imagine you've got a query taking 100ms to answer (slow backend/network)
 * your frontend calls the $resource twice in a 90ms timespan
 * you will do two requests instead of using the first promise to resolve the second call

This patch (against 2.x.x branch) adds a flag allowing to store the promise and let $resource do its job when the promise returns.
Pull Request #131: Added a flag to allow storing promises

17 of 17 new or added lines in 1 file covered. (100.0%)

504 of 547 relevant lines covered (92.14%)

160.35 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
4
100.0
src/angular-cache.js

Uncovered Existing Lines

Lines Coverage ∆ File
24
100.0
src/angular-cache.js
Jobs
ID Job ID Ran Files Coverage
1 274.1 09 Oct 2014 02:17PM UTC 0
92.14
Travis Job 274.1
2 274.2 09 Oct 2014 02:18PM UTC 0
92.14
Travis Job 274.2
Source Files on build 274
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #274
  • Pull Request #131
  • PR Base - v2 (#266)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc