To enforce communication using the binary protocol by providing
the connection factory to be used for communication. The
BinaryConnectionFactory class is used to
specify that the binary Memcached protocol is used.
For example, to enforce binary connections to the
servera and serverb as
listed in the previous example:
MemcachedClient c = new MemcachedClient(new BinaryConnectionFactory(), AddrUtil.getAddresses("servera:11211 serverb:11211")););