Sha256: 06a92b877e72b3257b5bf6b66cfc69e962e3b42e79053ca6e9e5ac615601ab65

Contents?: true

Size: 484 Bytes

Versions: 8

Compression:

Stored size: 484 Bytes

Contents

class Memcached
  def destroy_credentials
    if options[:credentials] != nil
      check_return_code(Lib.memcached_destroy_sasl_auth_data(@struct))
    end
  end

  def set_credentials
    # If credentials aren't provided, try to get them from the environment
    print options[:credentials]
    if options[:credentials] != nil
      username, password = options[:credentials]
      check_return_code(Lib.memcached_set_sasl_auth_data(@struct, username, password))
    end
  end
end

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
memcache-auth-0.2.5 lib/memcached/auth.rb
memcache-auth-0.2.4 lib/memcached/auth.rb
memcache-auth-0.2.3 lib/memcached/auth.rb
memcache-auth-0.2.2 lib/memcached/auth.rb
memcache-auth-0.2.1 lib/memcached/auth.rb
memcache-auth-0.2 lib/memcached/auth.rb
memcache-auth-0.17.7 lib/memcached/auth.rb
memcached-northscale-heroku-0.17.7 lib/memcached/auth.rb