Exemple #1
0
 def testInvalidateModels(self):
     self.assertTrue(self.redis.keys('panacea:api_promo_single_cache3*'))
     invalidate_model('test_app.PromoArea')
     self.assertFalse(self.redis.keys('panacea:api_promo_single_cache3*'))
     self.assertEqual(
         len(self.redis.keys(self.all_panacea_keys)), self.total_keys_cnt - 1
     )
 def handle_model(self, *args):
     return invalidation.invalidate_model(*args)