Closed bolasblack closed 10 years ago
What is your use case with angular-cache and $http that is not doable due to the lack of promise support?
I hope i can use angular-cache with $http
cache option.
@bolasblack You already can. Angular-cache fully supports the $cacheFactory
API. You can use $angularCacheFactory
in any place where you can use $cacheFactory
.
Though as far as I can tell, this pull request enables the following:
$angularCacheFactory
.get('someCache')
.put($http.get('/post/5'))
.then(function (post) {...})
.catch(function (err) {...});
Correct?
When the tests run they are run once for each of the last 15 versions of Angular. Can you refactor your tests to not use finally
? That's a recent feature, causing tests run against older versions of Angular to fail. See here.
@jmdobry I know what i need now! I'm trying to make storageMode can support promise.
@jmdobry oh, I found i made a mistake, I think angular will storage a promise into cache...
@bolasblack Okay!
Then i can use angular-cache with $http.