Memory

@Serializable
enum Memory : Enum<Memory>

How a Qdrant component is placed in memory. Data is always persisted on disk; this controls preloading and eviction only. When set with a legacy on_disk flag, this value wins.

Entries

Link copied to clipboard
@SerialName(value = "cold")
COLD

Load lazily and cache with use. Best for large or rarely queried components.

Link copied to clipboard
@SerialName(value = "cached")
CACHED

Preload into the OS page cache, but allow eviction under memory pressure.

Link copied to clipboard
@SerialName(value = "pinned")
PINNED

Keep resident and never evict. Not supported for dense-vector or payload storage.

Properties

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
expect val name: String
Link copied to clipboard
expect val ordinal: Int

Functions

Link copied to clipboard
fun valueOf(value: String): Memory

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.