Sets a value in the shared context.
The key for which the value is to be set.
The value to be set for the key.