private void invalidateRelationshipCache(Collection<UserRelationship.Key> keys) {
        for (UserRelationship.Key key : keys) {
            Pair<Long, Long> pair = Pair.of(key.getOwnerId(), key.getRelatedUserId());
            ownerIdAndRelatedUserIdToHasRelationshipAndNotBlockedCache.invalidate(pair);
            ownerIdAndRelatedUserIdToIsBlockedCache.invalidate(pair);
        }
    }
The method exists for backward compatibility
turms-service/src/main/java/im/turms/service/domain/user/service/UserRelationshipService.java