title: Load data in memory during server startup in Django app
body: <p>I am creating a Django app wherein I need to load and keep some data in memory when the server starts for quick access. To achieve this I am using Django's AppConfig class. The code looks something like this :</p>
  <pre><code>from django.core.cache import cache
  class myAppConfig(AppConfig):
      name = 'myapp'
       def ready(self):
          data = myModel.objects.values('A','B','C') 
          cache.set('mykey', data)
  </code></pre>
  <p>The problem is that this data in cache will expire after sometime. One alternative is to increase the TIMEOUT value. But I want this to be available in memory all the time. Is there some other configuration or approach which I can use to achieve this ?</p>