def StoreOrUpdateInCache(self, filename, data):
    try:
      if not memcache.add("%s%s" % (self.CACHE_PREFIX, filename), data):
        memcache.replace("%s%s" % (self.CACHE_PREFIX, filename), data)
    except (ValueError), err:
      logging.warning("Data size too large to cache\n%s" % err)
Store data in the cache.
dataset/ETHPy150Open aehlke/manabi/apps/dojango/appengine/memcache_zipserve.py/MemcachedZipHandler.StoreOrUpdateInCache