package coil.key;

import coil.request.Options;
import java.io.File;

/* JADX INFO: loaded from: classes.dex */
public final class FileKeyer implements Keyer<File> {
    private final boolean addLastModifiedToFileCacheKey;

    public FileKeyer(boolean z6) {
        this.addLastModifiedToFileCacheKey = z6;
    }

    @Override // coil.key.Keyer
    public String key(File file, Options options) {
        if (!this.addLastModifiedToFileCacheKey) {
            return file.getPath();
        }
        return file.getPath() + ':' + file.lastModified();
    }
}
