Partager via


RedisHashSetVectorStoreRecordCollectionOptions<TRecord>.PrefixCollectionNameToKeyNames Property

Definition

Gets or sets a value indicating whether the collection name should be prefixed to the key names before reading or writing to the Redis store. Default is false.

public bool PrefixCollectionNameToKeyNames { get; init; }
member this.PrefixCollectionNameToKeyNames : bool with get, set
Public Property PrefixCollectionNameToKeyNames As Boolean

Property Value

Remarks

For a record to be indexed by a specific Redis index, the key name must be prefixed with the matching prefix configured on the Redis index. You can either pass in keys that are already prefixed, or set this option to true to have the collection name prefixed to the key names automatically.

Applies to