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