DataService||doc136724

September 20, 2022

DataService

Global singleton

Only the server can access

Must passEngine.DataServicevisit

Brief Introduction

The data storage service contains two storage forms, global data storage and leaderboard data storage. Both of them will store data in the database to achieve the effect of long-term data storage. Even if the server is shut down, the data will not be lost.

Function

GlobalDataStore GetGlobalDataStorestring space )
Get the global data under the specified space name
RankDataStore GetRankDataStorestring space )
Get leaderboard data under the specified space name