Revert "ObjectCacher: remove unused target/max setters"

This reverts commit e1a49e5386c3ed4a6bc4870f01630349cb04d749.