這裏咱們嘗試在遊戲服務器中的數據處理中使用redis 經過該系列文章可以學習 redis的基本操做 源碼編譯 客戶端開源庫的編譯和使用 以及在遊戲服務器中的緩存使用html
做爲初次摸索 儘可能使得環境簡單 咱們在windows中運行redis進行學習linux
原本redis是不支持windows的網絡模型c++
可是仍是有微軟魔改的版本git
一個版本地址是 https://github.com/ServiceStack/redis-windows 看說明彷佛使用了windows 子系統功能模擬了linux運行redisgithub
(意味着對windows版本有要求 本次不選用)redis
還有有一個爲微軟維護的版本 比較老了 windows
https://github.com/MicrosoftArchive/redis/releases 目前版本3.2緩存
redis可視化工具 https://github.com/caoxinyu/RedisClient https://github.com/cinience/RedisStudio/releases服務器
redis開啓 可視化工具開始 如圖網絡
下面就是挑選 咱們須要的客戶端開源庫了
https://redis.io/clients#c-- redis庫 cpp版本客戶端的選擇其中之一便可
我目前選擇是庫是
1 acl-redis 緣由是支持VC 國產 做者博客 acl 框架庫簡介 用 acl 庫編寫高效的 C++ redis 客戶端應用
2 也能夠選擇 上面提到的redis工程中已經封裝好的hredis 可參考個人這篇文章 windows下使用redis c++
3 cpp_redis 地址 https://github.com/cylix/cpp_redis + https://github.com/Cylix/tacopie/tree/8714fcec4ba9694fb00e83e788aadc099bd0fd5d
三者會在下一篇中進行介紹和使用的描述