def register_filter_encoder encoder = nil, &block
      if !encoder.nil? && encoder.is_a?(Proc)
        @filter_codec[:encoder] = encoder
      elsif block_given?
        @filter_codec[:encoder] = block
      end
      save
    end
def register_filter_encoder encoder = nil, &block
      if !encoder.nil? && encoder.is_a?(Proc)
        @filter_codec[:encoder] = encoder
      elsif block_given?
        @filter_codec[:encoder] = block
      end
      save
    end
Registers a custom filter function to encode data.

 With this operation, it will be able to change filter encoding behavior despite
 the specified filter type value. It takes a Proc object or a block.