Skip to content

Commit

Permalink
update README and CHANGELOG
Browse files Browse the repository at this point in the history
  • Loading branch information
flyerhzm committed Aug 22, 2012
1 parent c9da3b0 commit 206ba17
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
10 changes: 10 additions & 0 deletions 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:
Expand Down
11 changes: 11 additions & 0 deletions README.md
Expand Up @@ -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
Expand Down

0 comments on commit 206ba17

Please sign in to comment.