README.md in lru_redux-0.8.1 vs README.md in lru_redux-0.8.2
- old
+ new
@@ -41,11 +41,11 @@
# [[:a,"1"],[:b,"2"]]
cache.delete(:a)
cache.each {|k,v| p "#{k} #{v}"}
# b 2
-cache.max_size(200) # cache now stores 200 items
+cache.max_size = 200 # cache now stores 200 items
cache.clear # cache has no items
cache.getset(:a){1}
cache.to_a
#[[:a,1]]
@@ -55,11 +55,11 @@
cache.to_a
#[[:a,1]]
# for thread safe access, all methods on cache
# are protected with a mutex
-cache = LruRedux::ThreadSafeCache(100)
+cache = LruRedux::ThreadSafeCache.new(100)
```
## Benchmarks
@@ -92,9 +92,22 @@
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request
## Changlog
+
+###version 0.8.2 - 16-Feb-2014
+
+- Perf: use #size instead of #count when checking length @Sebrius
+- Fix: Cache could grow beyond its size in Ruby 1.8 @Sebrius
+- Fix: #each could deadlock in Ruby 1.8 @Sebrius
+
+
+###version 0.8.1 - 7-Sep-2013
+
+- Fix #each implementation
+- Fix deadlocks with ThreadSafeCache
+- Version jump is because its been used in production for quite a while now
###version 0.0.6 - 24-April-2013
- Fix bug in getset, overflow was not returning the yeilded val