Add $key for custom serializer in Cache

Add $key for custom serializer in Cache