Sha256: 6af0e9e0d980440695d2dabe58eeb6a40f2544c5c574ec972940d671ab8e21f9

Contents?: true

Size: 264 Bytes

Versions: 8

Compression:

Stored size: 264 Bytes

Contents

module Sinatra
  module MemcachedConnection
    def setup_memcached host, port
      @memcached = Dalli::Client.new("#{host}:#{port}")
    end

    def close_memcached
      @memcached.close
    end

    def memcached_connection
      @memcached
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
memcached-manager-0.4.0 lib/extensions/memcached_connection.rb
memcached-manager-0.3.0 lib/extensions/memcached_connection.rb
memcached-manager-0.2.2 lib/extensions/memcached_connection.rb
memcached-manager-0.2.1 lib/extensions/memcached_connection.rb
memcached-manager-0.2.0 lib/extensions/memcached_connection.rb
memcached-manager-0.1.0 lib/extensions/memcached_connection.rb
memcached-manager-0.0.1 lib/extensions/memcached_connection.rb
memcached-manager-0.0.0 lib/extensions/memcached_connection.rb