There are smaller setups where you can still do bench, squats and deadlift. I even saw (I think a custom setup) where it was a full cage but was able to fold completely flat when not in use. This guy even had mounts put onto the wall to hold plates flat against the wall so it used even less space that way.
Pretty damn smart and is ultimately my goal to have a similar setup one day lol..
side note: went to the gym today for first time in awhile due to work schedule. felt great! Also was happy to find out that doing dips and pull ups in the park kept my strength up so I didn't really struggle at all doing bench today