<h2><aname="Multiple databases handling commands">Multiple databases handling commands</a></h2><ul><li><ahref="SelectCommand.html">SELECT</a><i>index</i><codename="code"class="python">Select the DB having the specified index</code></li><li><ahref="MoveCommand.html">MOVE</a><i>key</i><i>dbindex</i><codename="code"class="python">Move the key from the currently selected DB to the DB having as index dbindex</code></li><li><ahref="FlushdbCommand.html">FLUSHDB</a><codename="code"class="python">Remove all the keys of the currently selected DB</code></li><li><ahref="FlushallCommand.html">FLUSHALL</a><codename="code"class="python">Remove all the keys from all the databases</code></li></ul>
<h2><aname="Sorting">Sorting</a></h2><ul><li><ahref="SortCommand.html">SORT</a><i>key</i> BY <i>pattern</i> LIMIT <i>start</i><i>end</i> GET <i>pattern</i> ASC|DESC ALPHA <codename="code"class="python">Sort a Set or a List accordingly to the specified parameters</code></li></ul>
<h2><aname="Persistence control commands">Persistence control commands</a></h2><ul><li><ahref="SaveCommand.html">SAVE</a><codename="code"class="python">Synchronously save the DB on disk</code></li><li><ahref="BgsaveCommand.html">BGSAVE</a><codename="code"class="python">Asynchronously save the DB on disk</code></li><li><ahref="LastsaveCommand.html">LASTSAVE</a><codename="code"class="python">Return the UNIX time stamp of the last successfully saving of the dataset on disk</code></li><li><ahref="ShutdownCommand.html">SHUTDOWN</a><codename="code"class="python">Synchronously save the DB on disk, then shutdown the server</code></li></ul>
<h2><aname="Remote server control commands">Remote server control commands</a></h2><ul><li><ahref="InfoCommand.html">INFO</a><codename="code"class="python">Provide information and statistics about the server</code></li><li><ahref="MonitorCommand.html">MONITOR</a><codename="code"class="python">Dump all the received requests in real time</code></li></ul>
<h2><aname="Remote server control commands">Remote server control commands</a></h2><ul><li><ahref="InfoCommand.html">INFO</a><codename="code"class="python">Provide information and statistics about the server</code></li><li><ahref="MonitorCommand.html">MONITOR</a><codename="code"class="python">Dump all the received requests in real time</code></li><li><ahref="SlaveofCommand.html">SLAVEOF</a><codename="code"class="python">Change the replication settings</code></li></ul>
<h1><aname="SLAVEOF no one">SLAVEOF no one</a></h1><blockquote>The SLAVEOF command can change the replication settings of a slave on the fly.If a Redis server is arleady acting as slave, the command <codename="code"class="python">SLAVEOF NO ONE</code>will turn off the replicaiton turning the Redis server into a MASTER.In the proper form <codename="code"class="python">SLAVEOF hostname port</code> will make the server a slave of thespecific server listening at the specified hostname and port.</blockquote>
<blockquote>If a server is already a slave of some master, <codename="code"class="python">SLAVEOF hostname port</code> willstop the replication against the old server and start the synchrnonizationagainst the new one discarding the old dataset.</blockquote>
<blockquote>The form <codename="code"class="python">SLAVEOF no one</code> will stop replication turning the server into aMASTER but will not discard the replication. So if the old master stop workingit is possible to turn the slave into a master and set the application touse the new master in read/write. Later when the other Redis server will befixed it can be configured in order to work as slave.</blockquote>