Package projectatlast.test

Source Code of projectatlast.test.FlushMemcacheServlet

package projectatlast.test;

import projectatlast.data.Registry;

import java.io.IOException;

import javax.servlet.http.*;

import com.google.appengine.api.memcache.MemcacheService;

public class FlushMemcacheServlet extends HttpServlet {

  private static final long serialVersionUID = 1L;

  @Override
  public void doGet(HttpServletRequest req, HttpServletResponse resp)
      throws IOException {
    resp.setContentType("text/plain");
   
    MemcacheService memcache = Registry.dao().memcache();
    memcache.clearAll();
    resp.getWriter().println("Memcache cleared");
  }
}
TOP

Related Classes of projectatlast.test.FlushMemcacheServlet

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.