def set(self, key, value=None, dir=False, ttl=None, refresh=False,<EOL>prev_value=None, prev_index=None, timeout=None):
return self.adapter.set(key, value, dir=dir, ttl=ttl, refresh=refresh,<EOL>prev_value=prev_value, prev_index=prev_index,<EOL>timeout=timeout)<EOL>
Sets a value to a key.