The Trade Desk interview question

Design a set-associative cache, which allows the user to override the algorithm.