Some assisted living communities offer this option as an alternative to assisted living. I would recommend touring all the possibilities when visiting communities offering a continuum of care.
Memory care units are often located on a campus that offers a continuum of care. For example, there will be a section of the campus for Independent Living another for Assisted Living, Memory Care, and Skilled Care. There are even high rise buildings that offer multiple levels of care in the same building. These are good options for someone who needs more care short-term and can then return to their apartment in another section of the campus. Multiple levels of care also benefit couples who need different support systems. Dad has dementia and needs memory care help, but mom is okay living in independent living. Mom can drop in on dad for visits, but she is not responsible for managing his care.