Exemplo n.º 1
0
 def delete_index(self):
     cache.delete(self.index_key())
     return cache.get(self.index_key())
Exemplo n.º 2
0
    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))