Set key to a copy of items

def set(self, key, items):
        """Set key to a copy of items"""
        if not isinstance(items, list):
            raise ValueError("items must be a list")
        with self._lock:
            self._dict[key] = items.copy()