Write key-value pair

Write a value for a specific key in the namespace. Optionally set expiration and metadata.