How do I cache brew install node?

@levlaz I haven’t seen any documentation saying that you can only cache home folder. Here’s an example in Circle’s docs that shows the opposite is true:

Please advise, thanks.