package ru.kirillius.pf.sdn.repository;

import org.springframework.data.jpa.repository.JpaRepository;
import ru.kirillius.pf.sdn.entity.AutonomousSystemCacheEntry;

import java.util.Optional;

public interface AutonomousSystemCacheRepository extends JpaRepository<AutonomousSystemCacheEntry, Long> {
    Optional<AutonomousSystemCacheEntry> findByNumber(int number);

    boolean existsByNumber(int number);
}
