Skip to content

Commit

Permalink
Add rake task for valgrind; update README.
Browse files Browse the repository at this point in the history
  • Loading branch information
evan committed Feb 2, 2008
1 parent 7740b39 commit e57d4de
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions Manifest
Expand Up @@ -21,6 +21,7 @@ README
test/benchmark/benchmark.rb
test/benchmark/benchmark_set_get.rb
test/benchmark/profile.rb
test/benchmark/valgrind.rb
test/setup.rb
test/teardown.rb
test/test_helper.rb
Expand Down
6 changes: 5 additions & 1 deletion README
Expand Up @@ -83,7 +83,11 @@ Note that the API is not the same as that of <b>Ruby-MemCache</b> or <b>memcache
$cache.delete 'test'
$cache.get 'test' #=> raises Memcached::NotFound

I'll write a compatibility wrapper for legacy applications at some point. Or you could do it, and send me a nice patch.
== Legacy applications

There is a compatibility wrapper for legacy applications called Memcached::Rails.

The easiest way to use it in your app is by installing Interlock[http://blog.evanweaver.com/files/doc/fauna/interlock] and setting <tt>client: memcached</tt> in <tt>config/memcached.yml</tt>. This gives you memcached fragments by default. You do not have to use the other Interlock features unless you want to.

== Threading

Expand Down
4 changes: 4 additions & 0 deletions Rakefile
Expand Up @@ -20,3 +20,7 @@ task :exceptions do
end
end
end

task :valgrind do
exec("valgrind --tool=memcheck --leak-check=yes --show-reachable=yes --num-callers=20 --track-fds=yes ruby #{File.dirname(__FILE__)}/test/benchmark/valgrind.rb")
end

0 comments on commit e57d4de

Please sign in to comment.