def METHOD_NAME(self, object_id, permission, principal):
    permission_key = f"permission:{object_id}:{permission}"
    object_permission_principals = self._store.get(permission_key, set())
    object_permission_principals.add(principal)
    self._store[permission_key] = object_permission_principals