u should be passing hosts and keyspace as Redi2casa.new ['localhost'], 'keyspace'