Current File : //proc/self/root/kunden/usr/share/gems/doc/memcache-client-1.8.5/ri/page-README_rdoc.ri |
U:RDoc::TopLevel[ i I"README.rdoc:ETcRDoc::Parser::Simpleo:RDoc::Markup::Document:@parts[-S:RDoc::Markup::Heading:
leveli: textI"memcache-client;To:RDoc::Markup::BlankLine o:RDoc::Markup::Paragraph;[I",A ruby library for accessing memcached.;T@
o;
;[I"Source:;T@
o;
;[I".http://github.com/mperham/memcache-client;T@
S; ;
i;I"Installing memcache-client;T@
o;
;[I"Just install the gem:;T@
o:RDoc::Markup::Verbatim;[I"($ sudo gem install memcache-client
;T:@format0S; ;
i;I"Using memcache-client;T@
o;
;[I"With one server:;T@
o;;[I",CACHE = MemCache.new 'localhost:11211'
;T;0o;
;[I"Or with multiple servers:;T@
o;;[I"JCACHE = MemCache.new %w[one.example.com:11211 two.example.com:11211]
;T;0S; ;
i;I"Tuning memcache-client;T@
o;
;[I"]The MemCache.new method takes a number of options which can be useful at times. Please ;TI"\read the source comments there for an overview. If you are using Ruby 1.8.x and using ;TI"`multiple memcached servers, you should install the RubyInline gem for ultimate performance.;T@
S; ;
i;I"%Using memcache-client with Rails;T@
o;
;[I"hRails 2.1+ includes memcache-client 1.5.0 out of the box. See ActiveSupport::Cache::MemCacheStore ;TI"band the Rails.cache method for more details. Rails 2.3+ will use the latest memcache-client ;TI"gem installed.;T@
S; ;
i;I",Using memcache-client with EventMachine;T@
o;
;[I"Smemcache-client 1.8.0 added support for native EventMachine connections using ;TI"XRuby 1.9. If you are using an EventMachine-based application (e.g. thin), you can ;TI"/activate the EventMachine support like so:;T@
o;;[I"require 'memcache'
;TI"&require 'memcache/event_machine'
;TI"
;TI"EM.run do
;TI" Fiber.new do
;TI"- m = MemCache.new('localhost:11211')
;TI" m.set 'abc', 'xyz'
;TI" m.get 'abc'
;TI" end.resume
;TI" end
;T;0S; ;
i;I"Questions?;T@
o;
;[I"^memcache-client is maintained by Mike Perham and was originally written by Bob Cottrell, ;TI"(Eric Hodel and the seattle.rb crew.;T@
o:RDoc::Markup::List:
@type: NOTE:@items[o:RDoc::Markup::ListItem:@label[I"
Email;T;[o;
;[I"mailto:mperham@gmail.com;To;;[I"Twitter;T;[o;
;[I"(mperham[http://twitter.com/mperham];To;;[I"WWW;T;[o;
;[I"http://mikeperham.com;T@
o;
;[I"UIf my work on memcache-client is something you support, please take a moment to ;TI"Yrecommend me at WWR[http://workingwithrails.com/person/10797-mike-perham]. I'm not ;TI"5asking for money, just a electronic "thumbs up".;T:
@file@:0@omit_headings_from_table_of_contents_below0