DiskStorage

public enum DiskStorage

Represents a set of conception related to storage which stores a certain type of value in disk. This is a namespace for the disk storage types. A Backend with a certain Config will be used to describe the storage. See these composed types for more information.

  • 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 DiskStorage.Config value. 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.

    See more

    Declaration

    Swift

    public class Backend<T> where T : DataTransformable