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

时间: 2024-10-02 08:13:29

redis server和scripting 命令操作的相关文章

redis transaction和connection命令操作

/*********** redis transaction命令操作 **********/ 1. DISCARD - summary: Discard all commands issued after MULTI since: 2.0.0 EXEC - summary: Execute all commands issued after MULTI since: 1.2.0 MULTI - summary: Mark the start of a transaction block sinc

redis命令操作之generic和string.java

redis是键值对的内存数据库,属于Nosql范畴 登录redis自带的客户端 #redis-cli 127.0.0.1:6379> 1.设置redis 键值对 > set foo bar  #设置键foo的值为"bar" OK #设置成功 2.获得redis 键值对 > get foo #根据键获得值 "bar" #返回的结果 3.删除键值对  127.0.0.1:6379> del foo foo2 foo3 #删除键值对,可删除多个 (

redis hash命令操作

/*********redis hash命令操作 **********/ 1.删除一个或多个hash域 HDEL key field [field ...] summary: Delete one or more hash fields since: 2.0.0 127.0.0.1:6379> HDEL hash1 name (integer) 1 2.判断一个域是否存在 HEXISTS key field summary: Determine if a hash field exists si

在SQL Server中使用命令调用SSIS包

  在SQL Server中可以使用dtexec命令运行SSIS包(2005以上版本),当然也可以通过系统过程:xp_cmdshell调用dtexec运行SSIS包. 具体操作步骤如下: 1.首先,当然是要在Business Intelligence中设计好包,并调试通过. 2.然后,有两种方式可以在SQL Server中使用命令运行SSIS包 第一种是直接执行ssis包文件,命令如: exec xp_cmdshell 'dtexec /f "c:test.dtsx"' 第二种是将包文

在SQL Server中使用命令调用SSIS包的具体方法_MsSql

具体操作步骤如下: 1.首先,当然是要在Business Intelligence中设计好包,并调试通过. 2.然后,有两种方式可以在SQL Server中使用命令运行SSIS包 第一种是直接执行ssis包文件,命令如: exec xp_cmdshell 'dtexec /f "c:\test.dtsx"' 第二种是将包文件发布或者导入到Integration Services服务中,然后再执行. 发布包是在Business Intelligence中生成发布文件,并发布到Integr

C# Redis Server分布式缓存编程(一)

  这篇文章我将介绍如果用最简洁的方式配置Redis Server, 以及如何使用C#和它交互编程 一. 背景介绍 Redis是最快的key-value分布式缓存之一 缺点: 没有本地数据缓冲, 目前还没有完整的数据聚集化支持 优点: 配置简单, 使用方便, 高性能,支持不同的数据类型(hashes, lists, sets, sorted sets)         ASP.NET WebUI for viewing content of the cache   二. 安装Redis 1) 从

在SQL Server中使用命令调用SSIS包的具体方法

具体操作步骤如下: 1.首先,当然是要在Business Intelligence中设计好包,并调试通过. 2.然后,有两种方式可以在SQL Server中使用命令运行SSIS包 第一种是直接执行ssis包文件,命令如: exec xp_cmdshell 'dtexec /f "c:\test.dtsx"' 第二种是将包文件发布或者导入到Integration Services服务中,然后再执行. 发布包是在Business Intelligence中生成发布文件,并发布到Integr

如何把命令操作集成到右键菜单?

  很多时候,我们需要将文件夹中的文件列表复制出来,或者快速清空剪贴板的内容,可你又不想安装第三方工具,此时虽然可以使用dir等古老的DOS命令实现,但命令参数又相对复杂.其实,通过注册表编辑器,就可以将复杂的命令操作集成到右键菜单. 打开注册表编辑器,依次跳转到"HKEY_CLASSES_ROOTFoldershell",新建一个名为"copylist"的项,在它的下级新建一个名为"command"的子项.返回"copylist&qu

NoSQL之Redis(二)---Java操作Redis存储自定义类型数据

NoSQL之Redis(二)---Java操作Redis存储自定义类型数据            Redis简介            Redis是一个开源,先进的key-value存储,并用于构建高性能,可扩展的Web应用程序的完美解决方案.            Redis从它的许多竞争继承来的三个主要特点: Redis数据库完全在内存中,使用磁盘仅用于持久性. 相比许多键值数据存储,Redis拥有一套较为丰富的数据类型. Redis可以将数据复制到任意数量的从服务器.