T
- type of the identifierpublic static interface CacheUsage.PartitionDescriptor<T>
Modifier and Type | Method and Description |
---|---|
static CacheUsage.DirPartition |
dir(int index)
Creates a partition for a directory.
|
static CacheUsage.FilePartition |
file(String fileId)
Creates a partition for a specific file.
|
T |
getIdentifier()
Gets an identifier of the partition.
|
static CacheUsage.ScopePartition |
scope(CacheScope scope)
Creates a partition of a cache scope.
|
T getIdentifier()
static CacheUsage.FilePartition file(String fileId)
fileId
- file IDstatic CacheUsage.DirPartition dir(int index)
index
- dir indexstatic CacheUsage.ScopePartition scope(CacheScope scope)
scope
- the cache scopeCopyright © 2023. All Rights Reserved.