The nonlocal effect on the spontaneous emission of a silver cuboid dimer is investigated using a local analog model. Magnetic as well as electric dipole excitations are introduced to excite different gap modes. The nonlocal response of electric and magnetic modes on various parameters of gap (width