Updated sample for managed cache service