1. A method for content addressable memory (CAM), comprising: writing entries, including a type field, to a ternary CAM (TCAM); marking certain entries as valid; and pre-charging match lines associated with the entries when an entry is valid and based on a type selection.