Skip to content

Commit e1e61c9

Browse files
committed
Stable Version 4.5.0.
Fixes #211 Fixes #212 Closes #205
1 parent bf14ca2 commit e1e61c9

9 files changed

+292
-208
lines changed

CHANGELOG.md

+15
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
##### 4.5.0 12 January 2016
2+
3+
###### Backwards compatible API changes
4+
5+
- #205 - Feature request: Cache.getAllValues
6+
7+
###### Backwards compatible bug fixes
8+
9+
- #211 - Expires value gets sometimes automatically set to null
10+
- #212 - Internal Cache not reloaded on Reload
11+
12+
###### Other
13+
14+
- Upgraded to CacheFactory v1.4.0
15+
116
##### 4.4.3 30 December 2015
217

318
- #179 - capacity does not work on often reload

LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License
22

3-
Copyright (C) 2013-2015 Jason Dobry
3+
Copyright (C) 2013-2016 Jason Dobry
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy of
66
this software and associated documentation files (the "Software"), to deal in

README.md

+34-1
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,35 @@ angular.module('myApp', ['angular-cache'])
5050
});
5151
```
5252

53+
#### Why would you want to replace $cacheFactory?
54+
55+
| Feature | $cacheFactory | angular-cache |
56+
| ----------- | ------------------- | --------------- |
57+
| core implementation usable outside of Angular | no | [__yes__](https://github.com/jmdobry/CacheFactory) |
58+
| key/value store | __yes__ | __yes__ |
59+
| in-memory support | __yes__ | __yes__ |
60+
| localStorage support | no | __yes__ |
61+
| sessionStorage support | no | __yes__ |
62+
| custom storage support | no | __yes__ |
63+
| can set maximum capacity | __yes__ | __yes__ |
64+
| LRU support | __yes__ | __yes__ |
65+
| support for time-based expiration of items | no | __yes__ |
66+
| remove all expired items | n/a | __yes__ |
67+
| "touch" an item | n/a | __yes__ |
68+
| execute callback when an item expires | n/a | __yes__ |
69+
| get info about cache | __yes__ | __yes__ |
70+
| get info about single item | no | __yes__ |
71+
| get item by key | __yes__ | __yes__ |
72+
| remove item by key | __yes__ | __yes__ |
73+
| remove all items | __yes__ | __yes__ |
74+
| get keys of all caches | no | __yes__ |
75+
| clear all caches | no | __yes__ |
76+
| disable/enable a cache | no | __yes__ |
77+
| "touch" all items in all caches | n/a | __yes__ |
78+
| remove expired items from all caches | n/a | __yes__ |
79+
| get all keys in a cache | no | __yes__ |
80+
| clear a cache on a given interval | no | __yes__ |
81+
5382
### The Basics
5483

5584
First, inject `CacheFactory` then create a cache. Let's go:
@@ -582,6 +611,10 @@ Enable the cache.
582611

583612
Disable the cache.
584613

614+
##### `Cache#values()`
615+
616+
Return all values in the cache.
617+
585618
##### `Cache#touch([key])`
586619

587620
`Cache#touch()` will "touch" all items in the cache.
@@ -622,7 +655,7 @@ Set multiple options for the cache at a time. Setting `strict` to `true` will re
622655
### License
623656
[MIT License](https://github.com/jmdobry/angular-cache/blob/master/LICENSE)
624657

625-
Copyright (C) 2013-2015 Jason Dobry
658+
Copyright (C) 2013-2016 Jason Dobry
626659

627660
Permission is hereby granted, free of charge, to any person obtaining a copy of
628661
this software and associated documentation files (the "Software"), to deal in

0 commit comments

Comments
 (0)