mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 06:35:51 +00:00
Temp
This commit is contained in:
@@ -8,14 +8,15 @@ public final class ItemCacheEntryId: Equatable, Hashable {
|
||||
self.collectionId = collectionId
|
||||
self.key = key
|
||||
}
|
||||
|
||||
|
||||
public func hash(into hasher: inout Hasher) {
|
||||
hasher.combine(self.collectionId)
|
||||
hasher.combine(self.key)
|
||||
}
|
||||
|
||||
public static func ==(lhs: ItemCacheEntryId, rhs: ItemCacheEntryId) -> Bool {
|
||||
return lhs.collectionId == rhs.collectionId && lhs.key == rhs.key
|
||||
}
|
||||
|
||||
public var hashValue: Int {
|
||||
return self.collectionId.hashValue &* 31 &+ self.key.hashValue
|
||||
}
|
||||
}
|
||||
|
||||
private enum ItemCacheSection: Int8 {
|
||||
|
||||
Reference in New Issue
Block a user