def delete_index(self): cache.delete(self.index_key()) return cache.get(self.index_key())
def uncache(self): app.logger.debug("deleting {}".format(self)) # delete from cache too. It may be under two different keys cache.delete(User.key(self.strava_id)) cache.delete(User.key(self.username))