콘텐츠로 이동
한국어

CassandraRememberEntitiesStoreOptionsType

이 콘텐츠는 아직 번역되지 않았습니다.

Defined in: src/cluster/sharding/CassandraRememberEntitiesStoreOptions.ts:9

Plain options-object shape consumed by CassandraRememberEntitiesStore — the shared CassandraConnection fields plus the store-specific table / autoCreateTables / client.

readonly optional autoCreateKeyspace?: boolean

Defined in: src/persistence/journals/CassandraClient.ts:44

If true, create the keyspace on startup (simple strategy, rf=1). Dev-friendly default.

CassandraConnection.autoCreateKeyspace


readonly optional autoCreateTables?: boolean

Defined in: src/cluster/sharding/CassandraRememberEntitiesStoreOptions.ts:13

Auto-create the table on first use. Default: true.


readonly optional client?: CassandraClientLike

Defined in: src/cluster/sharding/CassandraRememberEntitiesStoreOptions.ts:21

Inject a pre-built CQL client. When omitted, the store instantiates its own (via cassandra-driver) — but typical deployments share one client across journal + snapshot store + remember-entities, so passing the existing one in is the recommended pattern.


readonly optional consistency?: number

Defined in: src/persistence/journals/CassandraClient.ts:57

CQL consistency level to use for all reads and writes. Default: LOCAL_QUORUM (value 6 in the driver). Pass the numeric value from cassandra-driver’s types.consistencies.

CassandraConnection.consistency


readonly contactPoints: readonly string[]

Defined in: src/persistence/journals/CassandraClient.ts:34

Node(s) to seed the cluster topology from.

CassandraConnection.contactPoints


readonly optional credentials?: object

Defined in: src/persistence/journals/CassandraClient.ts:40

Optional username/password for PLAIN auth.

password: string

username: string

CassandraConnection.credentials


readonly keyspace: string

Defined in: src/persistence/journals/CassandraClient.ts:38

Keyspace to USE after connect. Must already exist, or pass autoCreateKeyspace: true.

CassandraConnection.keyspace


readonly optional localDataCenter?: string

Defined in: src/persistence/journals/CassandraClient.ts:36

Local DC — required for DCAwareRoundRobinPolicy. Defaults to datacenter1.

CassandraConnection.localDataCenter


readonly optional port?: number

Defined in: src/persistence/journals/CassandraClient.ts:42

Port — defaults to 9042.

CassandraConnection.port


readonly optional replication?: object

Defined in: src/persistence/journals/CassandraClient.ts:46

Replication options used by autoCreateKeyspace. Ignored otherwise.

readonly optional class?: "SimpleStrategy" | "NetworkTopologyStrategy"

readonly optional dataCenters?: Readonly<Record<string, number>>

For NetworkTopologyStrategy, map of DC → replication factor.

readonly optional replicationFactor?: number

CassandraConnection.replication


readonly optional table?: string

Defined in: src/cluster/sharding/CassandraRememberEntitiesStoreOptions.ts:11

Table for the remember-entities state. Default: remember_entities.