diff options
author | 2017-05-04 07:48:42 -0400 | |
---|---|---|
committer | 2017-05-04 12:28:17 -0400 | |
commit | b54df0ddd0c6a0372327c5aa3668e5a6458fcd64 (patch) | |
tree | e69cfa9b314a801bd187cf0145d1d4306436229c /ecomp-portal-FE/client/bower_components/angular-cache/TRANSITION.md | |
parent | 39d1e62c84041831bfc52cca73b5ed5efaf57d27 (diff) |
[PORTAL-7] Rebase
This rebasing includes common libraries and common overlays projects
abstraction of components
Change-Id: I9a24a338665c7cd058978e8636bc412d9e2fdce8
Signed-off-by: st782s <statta@research.att.com>
Diffstat (limited to 'ecomp-portal-FE/client/bower_components/angular-cache/TRANSITION.md')
-rw-r--r-- | ecomp-portal-FE/client/bower_components/angular-cache/TRANSITION.md | 98 |
1 files changed, 0 insertions, 98 deletions
diff --git a/ecomp-portal-FE/client/bower_components/angular-cache/TRANSITION.md b/ecomp-portal-FE/client/bower_components/angular-cache/TRANSITION.md deleted file mode 100644 index 0c0920dc..00000000 --- a/ecomp-portal-FE/client/bower_components/angular-cache/TRANSITION.md +++ /dev/null @@ -1,98 +0,0 @@ -### 2.x.x. ---> 3.x.x - xx April 2013 -TODO - -### 1.x.x. ---> 2.0.0 - 30 October 2013 - -#### Breaking API changes -##### Swapped `aggressiveDelete` option for `deleteOnExpire` option. - -###### 1.x.x -Aggressively delete expiring items. -```javascript -$angularCacheFactory('myNewCache', { - maxAge: 90000, // Items added to this cache expire after 15 minutes - aggressiveDelete: true // Items will be actively deleted when they expire -}); -``` - -Passively delete items when they are requested after they have expired. -```javascript -$angularCacheFactory('myNewCache', { - maxAge: 90000, // Items added to this cache expire after 15 minutes - aggressiveDelete: false // Items will be actively deleted when they expire -}); -``` - -###### 2.0.0 -Aggressively delete expiring items. -```javascript -$angularCacheFactory('myNewCache', { - maxAge: 90000, // Items added to this cache expire after 15 minutes - deleteOnExpire: 'aggressive' // Items will be actively deleted when they expire -}); -``` - -Passively delete items when they are requested after they have expired. -```javascript -$angularCacheFactory('myNewCache', { - maxAge: 90000, // Items added to this cache expire after 15 minutes - deleteOnExpire: 'passive' // Items will be passively deleted when requested after expiration -}); -``` - -Do nothing with expired items (not in 1.x.x). -```javascript -$angularCacheFactory('myNewCache', { - maxAge: 90000, // Items added to this cache expire after 15 minutes - deleteOnExpire: 'none' // Items will expire but not be removed -}); -``` - -##### Substituted `localStorageImpl` and `sessionStorageImpl` options for just `storageImpl` option. - -###### 1.x.x -```javascript -$angularCacheFactory('myNewCache', { - storageMode: 'localStorage', - localStorageImpl: myLocalStoragePolyfill // Use custom localStorage implementation -}); - -$angularCacheFactory('myNewCache2', { - storageMode: 'sessionStorage', - sessionStorageImpl: mySessionStoragePolyfill // Use custom sessionStorage implementation -}); -``` - -###### 2.0.0 -```javascript -$angularCacheFactory('myNewCache', { - storageMode: 'localStorage', - storageImpl: myLocalStoragePolyfill // Use custom localStorage implementation -}); - -$angularCacheFactory('myNewCache2', { - storageMode: 'sessionStorage', - storageImpl: mySessionStoragePolyfill // Use custom sessionStorage implementation -}); -``` - -##### Installation -The Bower package now contains only `dist/angular-cache.js` and `dist/angular-cache.min.js`. - -##### onExpire - -###### 1.x.x -```javascript -cache.get('someKey', function (key, value) { - // do something with expired item -}); -``` - -###### 2.0.0 -```javascript -cache.get('someKey', { - onExpire: function (key, value) { - // do something with expired item - } -}); -``` |