# DB Cache System ver.2

<mark style="color:orange;">ProudNet Database Cache System version 2</mark>採用cache技術減少數據庫訪問次數，\
同時允許遊戲服務器開發人員在訪問數據庫時不考慮等待時間進行遊戲開發。

如果您沒有太多經驗來實現網絡遊戲的數據庫方案以及數據庫緩存系統，則可以更加有效地使用。

## 作用

> 1. 遊戲相關數據庫訪問cache
> 2. 對非同步資料庫存取進行調解
> 3. 非獨佔存取功能：\
>    防止從遊戲伺服器以及 Web 服務和計費系統存取資料庫時中斷

您可以存取使用者定義的各種類型的數據，例如從遊戲伺服器到資料庫讀取/寫入玩家的角色、庫存物品、好友清單等，或遊戲世界的狀態（例如掉落在遊戲中的物品）樓層、怪物分佈、戰場），可用於處理從遊戲伺服器到資料庫的讀取/寫入（佔領狀態等）等資料。


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.proudnet.com/proudnet.cn/proudnet/db_system/db_cache_ver2.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
