• redis server和scripting 命令操作


    /********* redis server命令操作 *************/


    BGREWRITEAOF -
    summary: Asynchronously rewrite the append-only file
    since: 1.0.0


    BGSAVE -
    summary: Asynchronously save the dataset to disk
    since: 1.0.0


    CLIENT GETNAME -
    summary: Get the current connection name
    since: 2.6.9


    CLIENT KILL ip:port
    summary: Kill the connection of a client
    since: 2.4.0


    CLIENT LIST -
    summary: Get the list of client connections
    since: 2.4.0


    CLIENT SETNAME connection-name
    summary: Set the current connection name
    since: 2.6.9


    CONFIG GET parameter
    summary: Get the value of a configuration parameter
    since: 2.0.0


    CONFIG RESETSTAT -
    summary: Reset the stats returned by INFO
    since: 2.0.0


    CONFIG SET parameter value
    summary: Set a configuration parameter to the given value
    since: 2.0.0


    DBSIZE -
    summary: Return the number of keys in the selected database
    since: 1.0.0


    DEBUG OBJECT key
    summary: Get debugging information about a key
    since: 1.0.0


    DEBUG SEGFAULT -
    summary: Make the server crash
    since: 1.0.0


    FLUSHALL -
    summary: Remove all keys from all databases
    since: 1.0.0


    FLUSHDB -
    summary: Remove all keys from the current database
    since: 1.0.0


    INFO [section]
    summary: Get information and statistics about the server
    since: 1.0.0


    LASTSAVE -
    summary: Get the UNIX time stamp of the last successful save to disk
    since: 1.0.0


    MONITOR -
    summary: Listen for all requests received by the server in real time
    since: 1.0.0


    SAVE -
    summary: Synchronously save the dataset to disk
    since: 1.0.0


    SHUTDOWN [NOSAVE] [SAVE]
    summary: Synchronously save the dataset to disk and then shut down the server
    since: 1.0.0


    SLAVEOF host port
    summary: Make the server a slave of another instance, or promote it as master
    since: 1.0.0


    SLOWLOG subcommand [argument]
    summary: Manages the Redis slow queries log
    since: 2.2.12


    SYNC -
    summary: Internal command used for replication
    since: 1.0.0


    TIME -
    summary: Return the current server time
    since: 2.6.0


    /**************** redis scripting 命令操作 *************/
    EVAL script numkeys key [key ...] arg [arg ...]
    summary: Execute a Lua script server side
    since: 2.6.0


    EVALSHA sha1 numkeys key [key ...] arg [arg ...]
    summary: Execute a Lua script server side
    since: 2.6.0


    SCRIPT EXISTS script [script ...]
    summary: Check existence of scripts in the script cache.
    since: 2.6.0


    SCRIPT FLUSH -
    summary: Remove all the scripts from the script cache.
    since: 2.6.0


    SCRIPT KILL -
    summary: Kill the script currently in execution.
    since: 2.6.0


    SCRIPT LOAD script
    summary: Load the specified Lua script into the script cache.
    since: 2.6.0



  • 相关阅读:
    一道初中练习题,现在的我几乎差点很有可能搞不好似乎仿佛就没有做出来.
    [转]IBM ThinkPad 全新、原装机验机流程(完全版)
    在一个BBS上看到的.觉得很不错,放过来.
    验证数字的正则表达式集
    基于百度地图SDK + SQLite数据库的安卓管理系统
    C# 将系统时间转换成农历时间
    博客园
    C#正则表达式的简单用法
    单张图片轮换
    2个有焦点时文字消失或变淡效果
  • 原文地址:https://www.cnblogs.com/JZZ1026/p/4417308.html
Copyright © 2020-2023  润新知