Superconducting circuit quantum electrodynamics is the main architecture for implementation of quantum processors. This work presents a proposal to miniaturize quantum memory devices by combining the quantum memory qubits encoded directly in the first two Fock states ${|0\ensuremath{\rangle},|1\ensuremath{\rangle}}$ and the bus channel in the same specially designed multimode cavity. One key feature of the resonant modes used for quantum memory is that the microwave current is localized, which facilitates the storage and retrieval of information in superconducting qubits while preventing crosstalk from other resonant modes. Frequency design and distinct coupling strengths in this kind of device are analyzed with electromagnetic simulations and numerical calculations. The quantum memory properties, e.g., storage speed, fidelity, and stability, are examined in four cases: (1) memory operation of single-qubit state, (2) disturbing effects, (3) coupling operation, and (4) entangled states storage. Decoherence time of the quantum processor can be extended to more than one order of magnitude longer than that without the memory. By integrating transmons with optimally designed coplanar waveguide multimode quantum memories, the present study could provide an optimistic perspective for the development of large-scale superconducting quantum processors.