Exemple #1
0
 def retrieve(self, key):
     item = memcache.get(key)
     if item is not None:
         return item
     else:
         item = self.convertToRssItems( MatchedFile.all().order("-date").fetch(25) )
         if item is not None and not memcache.add(key, item):
             logging.error("Memcache set failed on %s" % key)
     return item
Exemple #2
0
 def retrieve(self, key):
     item = memcache.get(key)
     if item is not None:
         return item
     else:
         item = self.convertToRssItems(
             MatchedFile.all().order("-date").fetch(25))
         if item is not None and not memcache.add(key, item):
             logging.error("Memcache set failed on %s" % key)
     return item
Exemple #3
0
 def data(self):
     return MatchedFile.all().order("-date").fetch(1000)
Exemple #4
0
 def data(self):
     return MatchedFile.all().order("-date").fetch(1000)