基本命令 包括SET , GET , INCR , DEL , EXPIRE , TTL SET server:name "10" GET server:name INCR server:name DEL server:name INCR server:name #Redis提供INCR操作,是因为防止并发导致++操作不能得到预期的结果,而INCR是原子性的操作,不会有并发问题. SET resource:lock "Redis Demo"…
官方链接:http://redis.io/download Download, extract and compile Redis with: $ wget http://download.redis.io/releases/redis-3.2.1.tar.gz $ tar xzf redis-3.2.1.tar.gz $ cd redis-3.2.1 $ make The binaries that are now compiled are available in the src direc…