Permalink
Browse files

update README and CHANGELOG

  • Loading branch information...
1 parent c9da3b0 commit 206ba174d5d6e27d86e674b57225287663451df5 @flyerhzm flyerhzm committed Aug 22, 2012
Showing with 21 additions and 0 deletions.
  1. +10 −0 CHANGELOG.md
  2. +11 −0 README.md
View
10 CHANGELOG.md
@@ -1,3 +1,13 @@
+## 0.5.0 (Aug 22, 2012)
+
+Features:
+
+ - update spymemcached to 2.8.3, which set shouldOptimize as false by
+default
+ - add Memcached::ATimeoutOccurred exception
+ - accept exception_retry_limit option
+ - Memcached increment/decrement work with MarshalTranscoder
+
## 0.4.1 (Aug 17, 2012)
Bugfixes:
View
11 README.md
@@ -35,6 +35,17 @@ You can get multiple values at once:
$cache.get ['test', 'test2', 'missing']
#=> {"test" => "hello", "test2" => "hello"}
+You can set a counter and increment it. Note that you must initialize it
+with an integer, encoded as an unmarshalled ASCII string:
+
+ $cache.increment 'counter' #=> 1
+ $cache.increment 'counter' #=> 2
+ $cache.get('counter').to_i #=> 2
+
+You can get some server stats:
+
+ $cache.stats #=> {..., :bytes_written=>[62], :version=>["1.2.4"] ...}
+
## Rails
# config/environment.rb

0 comments on commit 206ba17

Please sign in to comment.