I have a method in python which do some processing on the input i send, and it returns a value after processing is done.
This method is taking lot of time to give the results. So, what i am doing now is for similar inputs I am caching return value using django Database caching. it worked well.
But I need the data to be stored in caching database for permanent use.
On Django website it is mentioned that "none of the Django caching backends should be used for permanent storage"(https://docs.djangoproject.com/en/1.9/topics/cache/).
I can store the data on cache database as well as regular database. But it will be performance problem.
So, what approach should i follow to do this with out performance issues.