An alternative to warehouses. The Memory Unit can store an infinite amount of a single item type. The more items you store, the more power it will require!
I was trying to setup my miner to only mine if there is less than 1'000'000 in storage, and inserters to pull things in only if there is less than 1'000'000 but when the storage is empty it's not outputting anything leading them to not put anything in, not sure if there is a way to output 0, but some sort of a way to let it setup without need for player input would be nice