Browse Source

Update 'README.md'

天问 1 year ago
parent
commit
9e17d4433d
1 changed files with 35 additions and 1 deletions
  1. 35 1
      README.md

+ 35 - 1
README.md

@@ -1,3 +1,37 @@
 # garnet
 
-Garnet is a remote cache-store from Microsoft Research that offers strong performance (throughput and latency), scalability, storage, recovery, cluster sharding, key migration, and replication features. Garnet can work with existing Redis clients.
+Garnet is a remote cache-store from Microsoft Research that offers strong performance (throughput and latency), scalability, storage, recovery, cluster sharding, key migration, and replication features. Garnet can work with existing Redis clients.
+
+微软基于.net开源的缓存数据库,对标redis, **代码非常简单**
+
+## Develop
+
+```
+# 编译,输出到 /app 目录
+dotnet restore
+dotnet build -c Release
+dotnet publish -c Release -o /app --self-contained false -f net8.0
+
+sudo apt-get update
+
+sudo apt-get install apt-transport-https
+
+wget -qO- https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.asc.gpg
+sudo mv microsoft.asc.gpg /etc/apt/trusted.gpg.d/
+wget -q https://packages.microsoft.com/config/ubuntu/20.04/prod.list
+sudo mv prod.list /etc/apt/sources.list.d/microsoft-prod.list
+
+sudo apt-get update
+sudo apt-get install dotnet-sdk-5.0
+
+/app/GarnetServer -i 128m
+
+```
+
+服务器需要安装.net环境,最好通过docker部署:
+
+```
+# 或
+docker compose -f docker-compose.yml up -d --build
+
+```