Updated mcache to make Codec extensible.