public class Backend<T> where T : DataTransformable
Represents a storage back-end for the
DiskStorage. The value is serialized to data
and stored as file in the file system under a specified location.
You can config a
DiskStorage.Backend in its initializer by passing a
or modifying the
config property after it being created.
DiskStorage will use file’s attributes to keep
track of a file for its expiration or size limitation.
public let directoryURL: URL
The URL of the cached file with a given computed
This method does not guarantee there is an image already cached in the returned URL. It just gives your the URL that the image should be if it exists in disk storage, with the give key.
public func cacheFileURL(forKey key: String) -> URL
The final computed key used when caching the image. Please note that usually this is not the
cacheKeyof an image
Source. It is the computed key with processor identifier considered.