# How does caching work?

**URL:** <https://support.openanalytics.eu/t/how-does-caching-work/1248>\
**Category:** ShinyProxy\
**Created:** [July 23, 2019, 9:00pm UTC](https://support.openanalytics.eu/t/how-does-caching-work/1248 "2019-07-23T21:00:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![spaceisonlynoise](https://support.openanalytics.eu/user_avatar/support.openanalytics.eu/spaceisonlynoise/32/292_2.png) [@spaceisonlynoise](https://support.openanalytics.eu/u/spaceisonlynoise)\
**Post date:** [July 23, 2019, 9:00pm UTC](https://support.openanalytics.eu/t/how-does-caching-work/1248/1 "2019-07-23T21:00:31Z")

</div>

I need to cache a few functions that query a database. I was going to use memoise but it occurred to me that it wouldn’t work across the different containers that ShinyProxy opens up to serve a request. How does caching work on ShinyProxy ?  
Thanks !

---

<div class="post-metadata">

**Author:** ![shrektan](https://support.openanalytics.eu/user_avatar/support.openanalytics.eu/shrektan/32/200_2.png) [@shrektan](https://support.openanalytics.eu/u/shrektan)\
**Post date:** [July 29, 2019, 11:54am UTC](https://support.openanalytics.eu/t/how-does-caching-work/1248/2 "2019-07-29T11:54:51Z")

</div>

I’m afraid there’s no native caching function in the shinyproxy. The easy way is to cache the data to the local disk using Docker’s volume.
