From 22d8528d904e69a8e22ba0e6d43dcb58a54bdcf5 Mon Sep 17 00:00:00 2001 From: gnattu Date: Mon, 5 Aug 2024 10:58:22 -0400 Subject: Backport pull request #11901 from jellyfin/release-10.9.z Implement Device Cache to replace EFCoreSecondLevelCacheInterceptor Original-merge: b7bc0e1c96553675a490c0bd92a58ad9c5f0d0e1 Merged-by: joshuaboniface Backported-by: Bond_009 --- MediaBrowser.Controller/Devices/IDeviceManager.cs | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'MediaBrowser.Controller/Devices') diff --git a/MediaBrowser.Controller/Devices/IDeviceManager.cs b/MediaBrowser.Controller/Devices/IDeviceManager.cs index eb181dcc4..5566421cb 100644 --- a/MediaBrowser.Controller/Devices/IDeviceManager.cs +++ b/MediaBrowser.Controller/Devices/IDeviceManager.cs @@ -44,26 +44,28 @@ namespace MediaBrowser.Controller.Devices /// /// The identifier. /// DeviceInfo. - Task GetDevice(string id); + DeviceInfo GetDevice(string id); /// /// Gets devices based on the provided query. /// /// The device query. /// A representing the retrieval of the devices. - Task> GetDevices(DeviceQuery query); + QueryResult GetDevices(DeviceQuery query); - Task> GetDeviceInfos(DeviceQuery query); + QueryResult GetDeviceInfos(DeviceQuery query); /// /// Gets the devices. /// /// The user's id, or null. /// IEnumerable<DeviceInfo>. - Task> GetDevicesForUser(Guid? userId); + QueryResult GetDevicesForUser(Guid? userId); Task DeleteDevice(Device device); + Task UpdateDevice(Device device); + /// /// Determines whether this instance [can access device] the specified user identifier. /// @@ -74,6 +76,6 @@ namespace MediaBrowser.Controller.Devices Task UpdateDeviceOptions(string deviceId, string deviceName); - Task GetDeviceOptions(string deviceId); + DeviceOptions GetDeviceOptions(string deviceId); } } -- cgit v1.2.3