<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def set_action_cache(self, action_key, data):
 """Store action needs and excludes. .. note:: The action is saved only if a cache system is defined. :param action_key: The unique action name. :param data: The action to be saved. """

        if self.cache:
            self.cache.set(
                self.app.config['ACCESS_ACTION_CACHE_PREFIX'] +
                action_key, data
            )