-
Notifications
You must be signed in to change notification settings - Fork 156
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #60 from jmdobry/develop
Develop - Release 2.0.0-rc.1
- Loading branch information
Showing
52 changed files
with
10,183 additions
and
4,928 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
#### 1.x.x. ---> 2.0.0 - xx 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 | ||
}); | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.