Updated key filter sample code

Updated cache key filter sample code to latest block syntax and to not use autorelease