// The MIT License (MIT)
//
// Copyright (c) 2015-2021 Alexander Grebenyuk (github.com/kean).

import Foundation
import Nuke

final class MockDataCache: DataCaching {
    var store = [String: Data]()

    func cachedData(for key: String) -> Data? {
        return store[key]
    }

    func storeData(_ data: Data, for key: String) {
        store[key] = data
    }

    func removeData(for key: String) {
        store[key] = nil
    }
}
