code: @Override
      public void deleteAll() {
          switch (keyMode) {
          case NAMESPACE:
              throw new CacheException.OperationNotSupportedException(
                      "Key mode[" + keyMode + "] does not support flushall operation.");
          case MONOPOLISTIC:
              try {
                  getMemcachedClient().flushAllWithNoReply();
              } catch (Exception e) {
                  throw e instanceof CacheException ? (CacheException) e : new CacheException(e);
              }
              break;
          case XNAMESPACE:
              try {
                  getMemcachedClient().invalidateNamespace(getName());
              } catch (Exception e) {
                  throw e instanceof CacheException ? (CacheException) e : new CacheException(e);
              }
              break;
          default:
              throw new IllegalStateException("Invalid key mode: " + keyMode);
          }
      }
docs: {@inheritDoc}