method

dup_value!

dup_value!()
public

Duplicate the value in a class. This is used by cache implementations that don’t natively serialize entries to protect against accidental cache modifications.