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
See moreDiskStorage.Backend
in its initializer by passing aDiskStorage.Config
value. or modifying theconfig
property after it being created.DiskStorage
will use file’s attributes to keep track of a file for its expiration or size limitation.Declaration
Swift
public class Backend<T> where T : DataTransformable
-
Represents the config used in a
See moreDiskStorage
.Declaration
Swift
public struct Config