title: Delete multiple keys from memcached
body: <p>I have two tables, the data of which are cached using memcached.
  Both the tables are using the same memcached server.
  Ex:<p>
  ABC table class:</p>
  
  <pre><code>public class ABC {
      public int abc;
      public Data data;
      public static final NAMESPACE = "ABC";
  
      public String getKey() {
          return NAMESPACE + abc;
      }
  
      public void cacheData() {
          String server = "127.0.0.1:11211";
          MemcachedClient client = new MemcachedClient(new BinaryConnectionFactory(), AddrUtil.getAddresses(servers));
          client.set(getKey(),data);
      }
  }
  </code></pre>
  
  <p>XYZ table class:</p>
  
  <pre><code>public class XYZ {
      public int xyz;
      public Data data;
      public static final NAMESPACE = "XYZ";
  
      public String getKey() {
          return NAMESPACE + xyz;
      }
  
      public void cacheData() {
          String server = "127.0.0.1:11211";
          MemcachedClient client = new MemcachedClient(new BinaryConnectionFactory(), AddrUtil.getAddresses(servers));
          client.set(getKey(),data);
      }
  }
  </code></pre>
  
  <p>Now multiple data are being cached in the same memcached server for both the tables. And I cud also remove keys one at a time. But how do I delete the entire cache only for one particular table i.e. if I want to delete cache only for XYZ table.</p>