move Cache definition