Splits logic for connection, set, get and expire off into a separate method for each datastore type