Add script for setting expiry and manipulating redis keys.

This is needed for dealing with sandbox key value store Redis keys.
This should document that subclasses need to return the key and the base implementation should either return the key or raise `NotImplementedError`.