I have angular directive and services. That directive is showing or hiding elements from component - depends on api answer. If user have permission to some element it allows to show that, in another way it is hiding element. But I want to make this type of request only one time per 10min, then store answer and for another element use cached information? How can I achieve it?