cache vector example