If you are familiar with RTS games like StarCraft, this should be familiar:
Select the items you want in the viewport or tree.
With the set you want selected, press CTRL
+1
to store your selection.
You can then select something else or deselect (spacebar
).
You can press 1
to recall that selection.
This shortcut applies to the other number keys too.