cache: added ability to pass array to refresh() method