use set method to set cache for arrayCache service