Performs setup for making a request with key from memcached. Returns the server to fetch the key from and the complete key to use.
Source Code
# File active_support/vendor/memcache-client-1.5.0/memcache.rb, line 659 def request_setup(key) raise MemCacheError, 'No active servers' unless active? cache_key = make_cache_key key server = get_server_for_key cache_key raise MemCacheError, 'No connection to server' if server.socket.nil? return server, cache_key end
<code/>and<pre/>for code samples.