# Ability to store Object in the Action cache along with the string

**URL:** <https://community.auth0.com/t/ability-to-store-object-in-the-action-cache-along-with-the-string/98247>\
**Category:** Product Feedback\
**Tags:** feature-request, action, feature, auth0\
**Created:** [January 16, 2023, 1:35pm UTC](https://community.auth0.com/t/ability-to-store-object-in-the-action-cache-along-with-the-string/98247 "2023-01-16T13:35:23Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![shobhit.singh](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/shobhit.singh/32/33866_2.png) [@shobhit.singh](https://community.auth0.com/u/shobhit.singh)\
**Post date:** [January 16, 2023, 1:35pm UTC](https://community.auth0.com/t/ability-to-store-object-in-the-action-cache-along-with-the-string/98247/1 "2023-01-16T13:35:24Z")

</div>

**Feature:** Store Objects along with string in action cache

**Description:** Going through action documentation, It has come to our understanding that cache is only able to store Strings. I want it to be able to store objects along with the strings which will help in implementing global configuration similar to the rules.

**Use-case:** We want to use an object in multiple actions to implement application wise behaviour. In order to achieve modularity we want to make it per application group. In current behaviour, we have to initialise the object in each action. Segregating it into multiple individual string is also not possible as cache has a limit of 20. We want to avoid this duplication.

---

<div class="post-metadata">

**Author:** ![larsf96](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/larsf96/32/33204_2.png) [@larsf96](https://community.auth0.com/u/larsf96)\
**Post date:** [January 17, 2023, 10:23am UTC](https://community.auth0.com/t/ability-to-store-object-in-the-action-cache-along-with-the-string/98247/2 "2023-01-17T10:23:00Z")

</div>

As long as this is not available, you could maybe simple encode your object with base64 and store it in the cache. Anyway, if the object is not dynamic (as you are referring to the rules configurations), it would maybe be also possible with the Action’s secrets

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [January 17, 2023, 1:39pm UTC](https://community.auth0.com/t/ability-to-store-object-in-the-action-cache-along-with-the-string/98247/3 "2023-01-17T13:39:09Z")

</div>

Marking that as a temporary workaround! Thanks for creating this feedback card and of course make sure to upvote it!

---

<div class="post-metadata">

**Author:** ![shobhit.singh](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/shobhit.singh/32/33866_2.png) [@shobhit.singh](https://community.auth0.com/u/shobhit.singh)\
**Post date:** [January 18, 2023, 7:49am UTC](https://community.auth0.com/t/ability-to-store-object-in-the-action-cache-along-with-the-string/98247/4 "2023-01-18T07:49:08Z")

</div>

That looks promising workaround. Thanks

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [February 1, 2023, 7:49am UTC](https://community.auth0.com/t/ability-to-store-object-in-the-action-cache-along-with-the-string/98247/5 "2023-02-01T07:49:37Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
