lib/dalli/client.rb
##
# Normalizes the argument into an array of servers.
# If the argument is a string, or an array containing strings, it's expected that the URIs are comma separated e.g.
# "memcache1.example.com:11211,memcache2.example.com:11211,memcache3.example.com:11211"
Normalizes the argument into an array of servers.
If the argument is a string, or an array containing strings, it's expected that the URIs are comma separated e.g.
Normalizes the argument into an array of servers . If the argument is a string or an array containing strings it ' s expected that the URIs are comma separated e . g .
def normalize_servers(servers)
      Array(servers).flat_map do |server|
        if server.is_a? String
          server.split(",")
        else
          server
        end
      end
    end
def normalize_servers ( servers ) Array ( servers ) . flat_map do | server | if server . is_a? String server . split ( "," ) else server end end end
Normalizes the argument into an array of servers.
Normalizes the argument into an array of servers .
servers
<not_specific>