cache.svc.js 430 Bytes
Newer Older
eddie.woo's avatar
eddie.woo committed
1 2 3 4 5 6 7 8 9 10 11
webservices.factory('cacheService', ['$http', 'apiConfig', function ($http, apiConfig) {
    'use strict';
    return {
        getAllCache: function () {
            return $http.get('/cache/getallcache', apiConfig.create({ ignoreLoadingBar: true }));
        },  
        getCacheByKey: function (cacheKey) {
            return $http.get('/cache/getcachebykey?cacheKey=' + cacheKey, apiConfig.create());
        },
    }
}]);