Skip to main content
Version: v1

IEntry Interface

Cache entry. Identifies file that this entry belongs to, and type of content stored in it.

Signature

export interface IEntry

Properties

Property Type Description
key string Identifies individual entry for a given file and type. Each file can have multiple cache entries associated with it. This property identifies a particular instance of entry. For example, for blobs it will be unique ID of the blob in a file. For batch of ops, it can be starting op sequence number. For types that have only one entry (like snapshots), it will be empty string.
type CacheContentType Identifies type of entry for a given file. Each file can have multiple types of entries associated with it. For example, it can be snapshot, blob, ops, etc.

Property Details

key

Identifies individual entry for a given file and type. Each file can have multiple cache entries associated with it. This property identifies a particular instance of entry. For example, for blobs it will be unique ID of the blob in a file. For batch of ops, it can be starting op sequence number. For types that have only one entry (like snapshots), it will be empty string.

Signature

key: string;

Type: string

type

Identifies type of entry for a given file. Each file can have multiple types of entries associated with it. For example, it can be snapshot, blob, ops, etc.

Signature

type: CacheContentType;

Type: CacheContentType