Mark两个Redis for windows
https://github.com/redis-windows/redis-windows
https://github.com/redis-windows/redis-windows/releases
我下载的是第三个,里面有批处理程序安装成service服务。
RedisDesktopManager.exe查询(Redis官网下不到了)
Redis Insight也可以查到(官网下载的推荐工具)下载地址:
Downloads | Redis
Redis还给了我个云端Redis数据库。看起来可以直接在.NET下用的。
https://cloud.redis.io/#/databases
出于好奇我试一下。
using StackExchange.Redis;namespace ConsoleApp2_Redis
{internal class Program{static void Main(string[] args){Console.WriteLine("Hello, World!");ConnectBasicExample connectBasicExample = new ConnectBasicExample();connectBasicExample.run();}}public class ConnectBasicExample{public void run(){var muxer = ConnectionMultiplexer.Connect(new ConfigurationOptions{EndPoints = { { "redis-15421.c322.us-east-1-2.ec2.redns.redis-cloud.com", 15421 } },User = "default",Password = "需要自行替换"});var db = muxer.GetDatabase();db.StringSet("foo", "bar");RedisValue result = db.StringGet("foo");Console.WriteLine(result); // >>> bar}}
}
它真的存取成功了。它成功了。了。。
Redis Insight连上了。
数据查到了。
自此我就有了云端的Redis数据库。不知道有没有过期时间。
另一个Redis for windows我没安。版本比较低。先保存。
https://github.com/tporadowski/redis
https://github.com/tporadowski/redis/releases
官网图
仅供学习参考,如有侵权联系我删除。