A MMORPG KIT's database manager project written by using .NET9
CacheManager- Set which kind of cache manager, now it has 2 options are0, which is a local cache manager (storing cache to dictionary, hashset), and1redis.DatabaseServer- Set which kind of database server, now it has 2 options are0= MySQL,1= SQLite, and2= PostgreSQLUserLoginManager- Set which kind of user login manager, now it has only 1 option is0, which is a user login manager which use nanoid to generate ID and use MD5 for password encryption.UserLoginManagerConfig:PasswordSaltPrefix- This is config which will be used whileUserLoginManageris0, it will be prefixed to password before encrypting with MD5, for example if you set to "PRE" and your password isP@22w0rDthen it will be prepend to the password so the value will be "PREP@22w0rD" before encrypting and store to database.UserLoginManagerConfig:PasswordSaltPostfix- This is config which will be used whileUserLoginManageris0, it will be prefixed to password before encrypting with MD5, for example if you set to "POST" and your password isP@22w0rDthen it will be append to the password so the value will be "P@22w0rDPOST" before encrypting and store to database.ApiSecretKey- Set secret key to allow client to connect, if client connecting with the wrong secret key, it won't be able to do anything with this service.
mySqlAddressaddress to MySQL server.mySqlPortport to MySQL server.mySqlUsernameusername to connect to MySQL server.mySqlPasswordpassword to connect to MySQL server.mySqlDbNamedatabase name.mySqlConnectionStringif this is set, it will use this as connection string, it won't use options above to create connection string
sqliteDbPathpath to where you want to store SQLite database file.
pgAddressaddress to PostgreSQL server.pgPortport to PostgreSQL server.pgUsernameusername to connect to PostgreSQL server.pgPasswordpassword to connect to PostgreSQL server.pgDbNamedatabase name.pgConnectionStringif this is set, it will use this as connection string, it won't use options above to create connection string
redisConnectionConfigconnection config to connect to redis server (ref. https://stackexchange.github.io/StackExchange.Redis/Configuration).redisDbPrefixprefix for keys which will be stored in Redis