Skip to content

Commit

Permalink
Updated README
Browse files Browse the repository at this point in the history
  • Loading branch information
jmdobry committed May 22, 2013
1 parent 61d78b0 commit c7171a8
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,8 @@ Set the cache to periodically clear itself.
Configure the cache to proactively remove items right when they expire, instead of lazily removing them. Use in conjunction with MaxAge.

## Roadmap
##### 0.5.0
- Complete set of unit tests

##### 0.6.0 Alpha
- Add ability for a cache to proactively remove expired items.
- Add ability for a cache to periodically clear itself.
- Unit tests for `AdvancedCache` class.
- Submit project to Angular.js user groups for feedback.

##### 0.7.0 Compatibility and Performance
Expand All @@ -51,8 +47,8 @@ Configure the cache to proactively remove items right when they expire, instead
## Download
| Type | File | Size |
| ------------- | ----------------------------------------------------------------------------------------------------------------------- | ------- |
| Production | [ngAdvancedCache-0.4.0.min.js](https://raw.github.com/jmdobry/ngAdvancedCache/master/dist/ngAdvancedCache-0.4.0.min.js) | 1.3 KB |
| Development | [ngAdvancedCache-0.4.0.js](https://raw.github.com/jmdobry/ngAdvancedCache/master/dist/ngAdvancedCache-0.4.0.js) | 13.5 KB |
| Production | [ngAdvancedCache-0.5.0.min.js](https://raw.github.com/jmdobry/ngAdvancedCache/master/dist/ngAdvancedCache-0.5.0.min.js) | 2.23 KB |
| Development | [ngAdvancedCache-0.5.0.js](https://raw.github.com/jmdobry/ngAdvancedCache/master/dist/ngAdvancedCache-0.5.0.js) | 16.2 KB |

## Usage

Expand Down Expand Up @@ -91,6 +87,11 @@ angular.module('myApp').service('myService', ['$advancedCacheFactory',
var myTimeLimitedCache = $advancedCacheFactory('myTimeLimitedCache', {
maxAge: 600000
});

// create a cache that will clear itself on an interval of 10 minutes
var myIntervalCache = $advancedCacheFactory('myIntervalCache', {
cacheFlushInterval: 600000
});
}
]);
```
Expand Down

0 comments on commit c7171a8

Please sign in to comment.