def get_memcached_usage(socket=None):
cmd = '<STR_LIT>'.format(socket)<EOL>output = getoutput(cmd)<EOL>curr_items = None<EOL>bytes_ = None<EOL>rows = output.split('<STR_LIT:\n>')[:-<NUM_LIT:1>]<EOL>for row in rows:<EOL><INDENT>row = row.split()<EOL>if row[<NUM_LIT:1>] == '<STR_LIT>':<EOL><INDENT>curr_items = int(row[<NUM_LIT:2>])<EOL><DEDENT>if row[<NUM_LIT:1>] == '<STR_LIT>':<EOL><INDENT>bytes_ = int(row[<NUM_LIT:2>])<EOL><DEDENT><DEDENT>return (bytes_, curr_items)<EOL>
Returns memcached statistics.

:param socket: Path to memcached's socket file.