allow user to specify cache object for views