put
Write to a key in the cache. Writer is used so that the cache implementation can perform actions after the write finishes, like commit (via atomic file rename).
Parameters
key
The key to write to.
writer
An interface that will write data given an OutputStream for the key.