protected Method

MemCache.request_setup(key)

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
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.