Home | History | Annotate | Download | only in app_engine_server

Lines Matching refs:memcache

19 """A class to serve pages from zip files and use memcache for performance.
22 class to serve HTTP GET requests. Memcache is used to increase response speed
41 from google.appengine.api import memcache
93 put into memcache, which is much faster than retreiving them from the zip
99 CACHE_PREFIX = 'cache://' # memcache key prefix for actual URLs
100 NEG_CACHE_PREFIX = 'noncache://' # memcache key prefix for non-existant URL
101 REDIRECT_PREFIX = 'redirect://' # memcache key prefix for redirect data
225 Redirect computations are stored in memcache for performance.
239 # Redirect data is stored in memcache for performance
241 redirect_data = memcache.get(memcache_key)
244 'Memcache Key: ' + memcache_key)
246 memcache.set(memcache_key, redirect_data)
437 # see if we have the page in the memcache
447 # IF we have the file, put it in the memcache
515 Get the file from the source, it must not have been in the memcache. If
686 """Get file from memcache, if available.
694 return memcache.get('%s%s' % (self.CACHE_PREFIX, filename))
699 Store a piece of data in the memcache. Memcache has a maximum item size of
711 if not memcache.add('%s%s' % (self.CACHE_PREFIX, filename), data):
712 memcache.replace('%s%s' % (self.CACHE_PREFIX, filename), data)
736 memcache.add('%s%s' % (self.NEG_CACHE_PREFIX, filename), -1)
747 return memcache.get('%s%s' % (self.NEG_CACHE_PREFIX, filename))