def cache_read(obj)
      # This is just a safety check. It can probably be disabled in the future
      # to increase performance.
      if obj.respond_to?(:is_poxreference?)
        # If this condition triggers, we have a bug in the library.
        PEROBS.log.fatal "POXReference objects should never be cached"
      end
      @reads[index(obj)] = obj
    end
def cache_read(obj)
      # This is just a safety check. It can probably be disabled in the future
      # to increase performance.
      if obj.respond_to?(:is_poxreference?)
        # If this condition triggers, we have a bug in the library.
        PEROBS.log.fatal "POXReference objects should never be cached"
      end
      @reads[index(obj)] = obj
    end
Create a new Cache object.
 @param bits [Integer] Number of bits for the cache index. This parameter
        heavilty affects the performance and memory consumption of the
        cache.
 Add an PEROBS::Object to the read cache.
 @param obj [PEROBS::ObjectBase]