Content-addressable memory (CAM) is a type of computer memory that can find data stored in it based on the data itself rather than its stored address. It compares input search data against stored data and returns the address of any matching data. CAM is much faster than RAM for search applications but also more expensive due to extra circuitry required in each memory cell. It is commonly used in networking devices like switches and routers where fast searching is important.