Redis – Transactions Exec Command
Redis EXEC command executes all previously queued commands in a transaction and restores the connection state to normal. Return Value Array reply, each element being the reply to each of the commands…
Redis EXEC command executes all previously queued commands in a transaction and restores the connection state to normal. Return Value Array reply, each element being the reply to each of the commands…
Redis DISCARD command flushes all previously queued commands in a transaction and restores the connection state to normal. Return Value String reply OK Syntax Basic syntax of redis DISCARD command is shown below: redis…
Redis transactions allow the execution of a group of commands in a single step. Following are the two properties of Transactions. All commands in a transaction are sequentially executed as…
Redis UNSUBSCRIBE command unsubscribes the client from the given channels, or from all of them if none is given. Syntax Following is the basic syntax of Redis UNSUBSCRIBE command. redis 127.0.0.1:6379> UNSUBSCRIBE channel [channel…
Redis SUBSCRIBE command subscribes the client to the specified channels. Syntax Following is the basic syntax of Redis SUBSCRIBE command. redis 127.0.0.1:6379> SUBSCRIBE channel [channel ...] Return Value Array reply. Example redis 127.0.0.1:6379> SUBSCRIBE…
Redis PUNSUBSCRIBE command unsubscribes the client from the given patterns, or from all of them if none is given. When no patterns are specified, the client is unsubscribed from all the previously…
Redis PUBLISH command posts a message to a channel. Syntax Following is the basic syntax of Redis PUBLISH command. redis 127.0.0.1:6379> PUBLISH channel message Return Value Integer reply − the number of clients that…
Redis PUBSUB command is an introspection command that allows to inspect the state of the Pub/Sub subsystem. It is composed of subcommands that are documented separately. Syntax Following is the basic syntax…
Redis PSUBSCRIBE command is used to subscribe to channels matching the given patterns. Syntax Following is the basic syntax of Redis PSUBSCRIBE command. redis 127.0.0.1:6379> PSUBSCRIBE CHANNEL_NAME_OR_PATTERN [PATTERN...] Following listing shows some supported patterns…
Redis Pub/Sub implements the messaging system where the senders (in redis terminology called publishers) sends the messages while the receivers (subscribers) receive them. The link by which the messages are…