CassandraRememberEntitiesStoreOptionsType
Este conteúdo não está disponível em sua língua ainda.
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.
Extends
Section titled “Extends”Properties
Section titled “Properties”autoCreateKeyspace?
Section titled “autoCreateKeyspace?”
readonlyoptionalautoCreateKeyspace?:boolean
Defined in: src/persistence/journals/CassandraClient.ts:44
If true, create the keyspace on startup (simple strategy, rf=1). Dev-friendly default.
Inherited from
Section titled “Inherited from”CassandraConnection.autoCreateKeyspace
autoCreateTables?
Section titled “autoCreateTables?”
readonlyoptionalautoCreateTables?:boolean
Defined in: src/cluster/sharding/CassandraRememberEntitiesStoreOptions.ts:13
Auto-create the table on first use. Default: true.
client?
Section titled “client?”
readonlyoptionalclient?: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.
consistency?
Section titled “consistency?”
readonlyoptionalconsistency?: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.
Inherited from
Section titled “Inherited from”CassandraConnection.consistency
contactPoints
Section titled “contactPoints”
readonlycontactPoints: readonlystring[]
Defined in: src/persistence/journals/CassandraClient.ts:34
Node(s) to seed the cluster topology from.
Inherited from
Section titled “Inherited from”CassandraConnection.contactPoints
credentials?
Section titled “credentials?”
readonlyoptionalcredentials?:object
Defined in: src/persistence/journals/CassandraClient.ts:40
Optional username/password for PLAIN auth.
password
Section titled “password”password:
string
username
Section titled “username”username:
string
Inherited from
Section titled “Inherited from”CassandraConnection.credentials
keyspace
Section titled “keyspace”
readonlykeyspace:string
Defined in: src/persistence/journals/CassandraClient.ts:38
Keyspace to USE after connect. Must already exist, or pass autoCreateKeyspace: true.
Inherited from
Section titled “Inherited from”CassandraConnection.keyspace
localDataCenter?
Section titled “localDataCenter?”
readonlyoptionallocalDataCenter?:string
Defined in: src/persistence/journals/CassandraClient.ts:36
Local DC — required for DCAwareRoundRobinPolicy. Defaults to datacenter1.
Inherited from
Section titled “Inherited from”CassandraConnection.localDataCenter
readonlyoptionalport?:number
Defined in: src/persistence/journals/CassandraClient.ts:42
Port — defaults to 9042.
Inherited from
Section titled “Inherited from”CassandraConnection.port
replication?
Section titled “replication?”
readonlyoptionalreplication?:object
Defined in: src/persistence/journals/CassandraClient.ts:46
Replication options used by autoCreateKeyspace. Ignored otherwise.
class?
Section titled “class?”
readonlyoptionalclass?:"SimpleStrategy"|"NetworkTopologyStrategy"
dataCenters?
Section titled “dataCenters?”
readonlyoptionaldataCenters?:Readonly<Record<string,number>>
For NetworkTopologyStrategy, map of DC → replication factor.
replicationFactor?
Section titled “replicationFactor?”
readonlyoptionalreplicationFactor?:number
Inherited from
Section titled “Inherited from”CassandraConnection.replication
table?
Section titled “table?”
readonlyoptionaltable?:string
Defined in: src/cluster/sharding/CassandraRememberEntitiesStoreOptions.ts:11
Table for the remember-entities state. Default: remember_entities.
