// To view the default settings, hold "alt" while clicking on the "Settings" button. // For documentation on these settings, see: https://aka.ms/terminal-documentation { "$schema":"https://aka.ms/terminal-profiles-schema", "defaultProfile":"{61c54bbd-c2c6-5271-96e7-009a87ff44bf}", "profiles": [ { // Make changes here to the powershell.exe profile "guid":"{61c54bbd-c2c6-5271-96e7-009a87ff44bf}", "name":"PowerShell", "commandline":"powershell.exe", "hidden":false, "useAcrylic":true, "cursorShape":"filledBox", "scrollbarState":"hidden" }, { // Make changes here to the cmd.exe profile "guid":"{0caa0dad-35be-5f56-a8ff-afceeeaa6101}", "name":"cmd", "commandline":"CMD", "hidden":false }, { "guid":"{b453ae62-4e3d-5e58-b989-0a998ec441b8}", "hidden":false, "name":"Azure Cloud Shell", "source":"Windows.Terminal.Azure" } ], // Add custom color schemes to this array "schemes":[], // Add any keybinding overrides to this array. // To unbind a default keybinding, set the command to "unbound" "keybindings":[] }
// To view the default settings, hold "alt" while clicking on the "Settings" button. // For documentation on these settings, see: https://aka.ms/terminal-documentation { "$schema":"https://aka.ms/terminal-profiles-schema", "defaultProfile":"{61c54bbd-c2c6-5271-96e7-009a87ff44bf}", "profiles": [ { // Make changes here to the powershell.exe profile "guid":"{61c54bbd-c2c6-5271-96e7-009a87ff44bf}", "name":"PowerShell", "commandline":"powershell.exe", "hidden":false, "startingDirectory":"./", "fontFace":"Cascadia Code", "acrylicOpacity":0.8, "useAcrylic":true, "colorScheme":"Firewatch", "cursorColor":"#FFFFFF", "cursorShape":"filledBox", "fontSize":12, "padding":"8, 8, 8, 8", "backgroundImage":"E:\\Images\\wallpaper\\1.jpg", "backgroundImageOpacity":0.3, "scrollbarState":"hidden" }, { // Make changes here to the cmd.exe profile "guid":"{0caa0dad-35be-5f56-a8ff-afceeeaa6101}", "name":"cmd", "commandline":"CMD", "hidden":false, "startingDirectory":"./", "fontFace":"Cascadia Code" }, { "guid":"{b453ae62-4e3d-5e58-b989-0a998ec441b8}", "hidden":false, "name":"Azure Cloud Shell", "source":"Windows.Terminal.Azure", "startingDirectory":"./", "fontFace":"Cascadia Code" } ], // Add custom color schemes to this array "schemes":[ { "name":"Firewatch", "black":"#585f6d", "red":"#d95360", "green":"#5ab977", "yellow":"#dfb563", "blue":"#4d89c4", "purple":"#d55119", "cyan":"#44a8b6", "white":"#e6e5ff", "brightBlack":"#585f6d", "brightRed":"#d95360", "brightGreen":"#5ab977", "brightYellow":"#dfb563", "brightBlue":"#4c89c5", "brightPurple":"#d55119", "brightCyan":"#44a8b6", "brightWhite":"#e6e5ff", "background":"#1e2027", "foreground":"#f3f3f3" } ], // Add any keybinding overrides to this array. // To unbind a default keybinding, set the command to "unbound" "keybindings":[] }
使用 set key value [EX seconds][PX milliseconds][NX|XX] 命令 看上去很OK,实际上在Redis集群的时候也会出现问题,比如说A客户端在Redis的master节点上拿到了锁,但是这个加锁的key还没有同步到slave节点,master故障,发生故障转移,一个slave节点升级为master节点,B客户端也可以获取同个key的锁,但客户端A也已经拿到锁了,这就导致多个客户端都拿到锁。