instance method close

Ruby on Rails 2.2.3

Since v2.2.3 Last seen in v2.3.18

Available in: v2.2.3 v2.3.18

Signature

close()

Close the connection to the memcached server targeted by this object. The server is not considered dead.

Source
# File activesupport/lib/active_support/vendor/memcache-client-1.5.1/memcache.rb, line 819
    def close
      @mutex.lock if @multithread
      @sock.close if @sock && !@sock.closed?
      @sock   = nil
      @retry  = nil
      @status = "NOT CONNECTED"
    ensure
      @mutex.unlock if @multithread
    end

Defined in activesupport/lib/active_support/vendor/memcache-client-1.5.1/memcache.rb line 819 · View on GitHub · Improve this page · Find usages on GitHub

Defined in MemCache::Server

Type at least 2 characters to search.

↑↓ navigate · open · esc close