# Caching service

**URL:** <https://community.dynatrace.com/t/caching-service/37797>\
**Category:** Developer Q&A Forum\
**Tags:** custom-app, platform-services\
**Created:** [December 27, 2022, 11:08am UTC](https://community.dynatrace.com/t/caching-service/37797 "2022-12-27T11:08:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![david\_petroni](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/david_petroni/32/1420_2.png) [@david\_petroni](https://community.dynatrace.com/u/david_petroni)\
**Post date:** [December 27, 2022, 11:08am UTC](https://community.dynatrace.com/t/caching-service/37797/1 "2022-12-27T11:08:24Z")

</div>

Hello,

in our microblogging app, we found out that it would have been great to have a cache in order to avoid querying Grail too often. The only option we found was to use the&nbsp;[Store app and user states | Dynatrace Developer](https://developer.dynatrace.com/develop/data/state/), but we were wondering if there is a better option.

Thanks!

---

<div class="post-metadata">

**Author:** ![christian\_barth](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/christian_barth/32/34060_2.png) [@christian\_barth](https://community.dynatrace.com/u/christian_barth)\
**Post date:** [December 27, 2022, 12:06pm UTC](https://community.dynatrace.com/t/caching-service/37797/2 "2022-12-27T12:06:06Z")

</div>

Hi David,

For now, the state service is the best-suited option for your use case. Depending on whether you want to cache something for a specific user or the “whole” app, you can use userAppState or AppState.

Hope this helps.
