# File lib/moneta/adapters/memcached/native.rb, line 20 def initialize(options = {}) server = options.delete(:server) || '127.0.0.1:11211' self.default_expires = options.delete(:expires) @backend = options[:backend] || begin options.merge!(:prefix_key => options.delete(:namespace)) if options[:namespace] # We don't want a limitation on the key charset. Therefore we use the binary protocol. # It is also faster. options[:binary_protocol] = true unless options.include?(:binary_protocol) ::Memcached.new(server, options) end end