added callbacks for custom cache functionality #212