Caches nothing.
Caches state of ref.
Removes and returns the state of ref, or null when none is cached.