Get a Cache wrapping of this cache by encoding objects of type S as T using the given codec.
S
T
codec
Cache<S> withCodec<S>(Codec<S, T> codec);