Updated to allow the memcached encoder to update the flags.