Home | History | Annotate | Download | only in app_engine_server

Lines Matching refs:memcache

18 """A class to serve pages from zip files and use memcache for performance.
21 class to serve HTTP GET requests. Memcache is used to increase response speed
40 from google.appengine.api import memcache
92 put into memcache, which is much faster than retreiving them from the zip
98 CACHE_PREFIX = 'cache://' # memcache key prefix for actual URLs
99 NEG_CACHE_PREFIX = 'noncache://' # memcache key prefix for non-existant URL
100 REDIRECT_PREFIX = 'redirect://' # memcache key prefix for redirect data
224 Redirect computations are stored in memcache for performance.
238 # Redirect data is stored in memcache for performance
240 redirect_data = memcache.get(memcache_key)
243 'Memcache Key: ' + memcache_key)
245 memcache.set(memcache_key, redirect_data)
436 # see if we have the page in the memcache
446 # IF we have the file, put it in the memcache
514 Get the file from the source, it must not have been in the memcache. If
681 """Get file from memcache, if available.
689 return memcache.get('%s%s' % (self.CACHE_PREFIX, filename))
694 Store a piece of data in the memcache. Memcache has a maximum item size of
706 if not memcache.add('%s%s' % (self.CACHE_PREFIX, filename), data):
707 memcache.replace('%s%s' % (self.CACHE_PREFIX, filename), data)
731 memcache.add('%s%s' % (self.NEG_CACHE_PREFIX, filename), -1)
742 return memcache.get('%s%s' % (self.NEG_CACHE_PREFIX, filename))