Preparing DB Cache 2 Server

Once you generate Game database schema for DB cache, you need to generate ProudDB Cache Server instance. ProudDB Cache Server instance is Proud.CDbCacheServer2 type. It is sufficient enough to have just one ProudDB Cache Server instance between each gamer server. The method that generates ProudDB Cache Server instance is Proud.CDbCacheServer2.New.

When ProudDB Cache Server instance is generated, run Proud.CDbCacheServer2.Start. Parameters that get input at the start up are connection string of accessing DB instance.

  • Connection string used in accessing DB instance is in ADO connection string format and its reference is guided in the sample.
  • Authentication key of DB cache server is a data sent by DB cache client used in DB cache server to identify the connection.
  • When calling for Proud.CDbCacheServer2.Start, name of custom table must be added into Proud.CDbCacheServer2StartParameter.m_tableNames by user.
  • Sp_Get<TableName>Data, sp_Remove<TableName>Data, and sp_Add<TableName>Data get automatically generated while Proud.CDbCacheServer2.Start is running. You need to be aware of this especially.