- Redis Basics
- Redis - Home
- Redis - Overview
- Redis - Environment
- Redis - Configuration
- Redis - Data types
- Redis Commands
- Redis - Commands
- Redis - Keys
- Redis - Strings
- Redis - Hashes
- Redis - Lists
- Redis - Sets
- Redis - Sorted Sets
- Redis - HyperLogLog
- Redis - Publish Subscribe
- Redis - Transactions
- Redis - Scripting
- Redis - Connections
- Redis - Server
- Redis Advanced
- Redis - Backup
- Redis - Security
- Redis - Benchmarks
- Redis - Client Connection
- Redis - Pipelining
- Redis - Partitioning
- Redis - Java
- Redis - Php
- Redis Useful Resources
- Redis - Quick Guide
- Redis - Useful Resources
- Redis - Discussion
Redis - Server Client Getname Command
Redis CLIENT GETNAME command returns the name of the current connection as set by CLIENT SETNAME. Since every new connection starts without an associated name, if no name was assigned, a null bulk reply is returned.
Return Value
Bulk string reply − The connection name, or a null bulk reply, if no name is set.
Syntax
Following is the basic syntax of Redis CLIENT GETNAME command.
redis 127.0.0.1:6379> CLIENT GETNAME
redis_server.htm
Advertisements
To Continue Learning Please Login
Login with Google