Пример #1
0
 def clear_cache(self):
     mc.delete(self._records_by_student_and_post_and_type_cache_key %
               (self.student_id, self.post_id, self.post_type_))
Пример #2
0
 def clear_cache(self):
     mc.delete(self._course_post_by_id_cache_key % self.id)
     mc.delete(self._course_post_supply_by_post_id_cache_key % self.id)
     mc.delete(self._course_post_demand_by_post_id_cache_key % self.id)
Пример #3
0
 def clear_cache(self):
     mc.delete(self._id_by_open_id_cache_key % self.open_id)
     mc.delete(self._wechat_session_by_id_cache_key % self.id)
Пример #4
0
 def clear_cache(self):
     mc.delete(self._wechat_user_by_open_id_cache_key % self.open_id)
Пример #5
0
 def clear_cache(self):
     mc.delete(self._course_cache_key % self.id)
Пример #6
0
 def clear_cache(self):
     mc.delete(self._goods_post_by_id_cache_key % self.id)
Пример #7
0
 def clear_cache(self):
     mc.delete(self._student_cache_key % self.id)
     mc.delete(self._avatar_cache_key % self.id)
     mc.delete(self._remaining_viewcount_by_student_cache_key % self.id)