{"id":618,"date":"2016-06-20T15:23:29","date_gmt":"2016-06-20T09:53:29","guid":{"rendered":"https:\/\/pheonixsolutions.com\/blog\/?p=618"},"modified":"2026-09-07T17:01:20","modified_gmt":"2026-09-07T11:31:20","slug":"redis-common-commands","status":"publish","type":"post","link":"https:\/\/pheonixsolutions.com\/blog\/redis-common-commands\/","title":{"rendered":"Redis Common Commands"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Introduction<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Redis is an in-memory data store commonly used for caching, session management, counters, queues, and other high-performance applications.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This guide covers commonly used Redis commands for connecting to Redis, managing keys and data types, checking server statistics, changing runtime configuration, working with databases and replication, debugging latency, creating backups, managing client connections, and monitoring Redis traffic.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Prerequisites<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Before using the commands in this guide, make sure:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Redis is installed and running on the server.<\/li>\n\n\n\n<li>You have access to the Redis server or <code>redis-cli<\/code>.<\/li>\n\n\n\n<li>You know the Redis host and port if connecting remotely.<\/li>\n\n\n\n<li>You have appropriate permissions to execute administrative commands.<\/li>\n\n\n\n<li>Be careful when running commands such as <code>KEYS<\/code>, <code>FLUSHDB<\/code>, <code>FLUSHALL<\/code>, and <code>MONITOR<\/code> on production systems.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Implementation<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Step 1: Connect to Redis<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">You can connect to Redis using <code>telnet<\/code> or the Redis CLI client.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Using Telnet:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">telnet localhost 6397<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Using Redis CLI:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">redis-cli<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The <code>redis-cli<\/code> client provides command-line history and a convenient interface for executing Redis commands.<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\"><strong>Note:<\/strong> Redis commonly uses port <code>6379<\/code> by default. The original article uses <code>6397<\/code>, so verify the port configured on your Redis server before connecting.<\/p>\n<\/blockquote>\n\n\n\n<h3 class=\"wp-block-heading\">Step 2: Monitor Live Redis Commands<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">The <code>MONITOR<\/code> command displays commands being executed on the Redis server in real time:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">monitor<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Use this command carefully on production systems because it can generate significant output and overhead.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Press <code>Ctrl-C<\/code> to stop monitoring.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Step 3: Check Slow Queries<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Redis provides the <code>SLOWLOG<\/code> feature for identifying slow commands.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To display the top 25 slow queries:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">slowlog get 25<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Check the number of entries in the slow log:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">slowlog len<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Reset the slow log:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">slowlog reset<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Step 4: Search for Keys<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">You can use the <code>KEYS<\/code> command to find keys matching a pattern:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">keys pattern\nkeys pattern*\nkeys *pattern*\nkeys *pattern<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">For example:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">keys user*<\/pre>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\"><strong>Warning:<\/strong> Avoid using <code>KEYS<\/code> on large production databases because it performs a full scan of the keyspace and can block Redis while processing. For production workloads, <code>SCAN<\/code> is generally safer for iterating through keys.<\/p>\n<\/blockquote>\n\n\n\n<h3 class=\"wp-block-heading\">Step 5: Use Generic Key Commands<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Some commonly used commands for managing Redis keys are:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">del &lt;key>\ndump &lt;key>\nexists &lt;key>\nexpire &lt;key> &lt;seconds><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">For example:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">exists testkey\nexpire testkey 3600\ndel testkey<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Step 6: Work with String Values<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Use the following commands to store and retrieve simple string values:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">get &lt;key>\nset &lt;key> &lt;value>\nsetnx &lt;key> &lt;value><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><code>SETNX<\/code> sets a value only when the key does not already exist.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Batch Commands<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">Multiple keys can be handled using:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">mget &lt;key> &lt;key> ...\nmset &lt;key> &lt;value> &lt;key> &lt;value> ...<\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">Counter Commands<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">Redis can also be used for counters:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">incr &lt;key>\ndecr &lt;key><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Step 7: Work with Lists<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Redis lists support operations such as adding, retrieving, removing, and trimming elements.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">lrange &lt;key> &lt;start> &lt;stop>\nlrange mylist 0 -1\nlindex mylist 5\nllen mylist\n\nlpush mylist \"value\"\nlpush mylist 5\nrpush mylist \"value\"\n\nlpushx mylist 6\nrpushx mylist 0\n\nlpop mylist\nrpop mylist\n\nlrem mylist 1 \"value\"\nlset mylist 2 6\nltrim &lt;key> &lt;start> &lt;stop><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">For example:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">lrange mylist 0 -1<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">returns all elements from <code>mylist<\/code>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Step 8: Work with Hashes<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Redis hashes store field-value pairs.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Check whether a field exists:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">hexists myhash field1<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Retrieve, delete, and set hash fields:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">hget myhash field1\nhdel myhash field2\nhset myhash field1 \"value\"\nhsetnx myhash field1 \"value\"<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Retrieve all fields and values:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">hgetall myhash<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Retrieve all fields:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">hkeys myhash<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Check the number of fields:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">hlen myhash<\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">Batch Hash Commands<\/h4>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">hmget &lt;key> &lt;key> ...\nhmset &lt;key> &lt;value> &lt;key> &lt;value> ...<\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">Hash Counter Commands<\/h4>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">hincrby myhash field1 1\nhincrby myhash field1 5\nhincrby myhash field1 -1\n\nhincrbrfloat myhash field2 1.123445<\/pre>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\"><strong>Note:<\/strong> Some commands in the original article reflect older Redis versions. Check the command syntax supported by your installed Redis version before using them.<\/p>\n<\/blockquote>\n\n\n\n<h3 class=\"wp-block-heading\">Step 9: Run Redis CLI Scripts<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">You can pipe Redis output through standard Linux commands.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For example, to check the number of connected clients:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">redis-cli INFO | grep connected<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Example output:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">connected_clients:2\nconnected_slaves:0<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Server Statistics<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Step 10: Check Redis Server Information<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">The <code>INFO<\/code> command provides statistics and configuration information about the Redis server.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">redis-cli INFO<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Example output:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">redis_version:2.2.12\nredis_git_sha1:00000000\nredis_git_dirty:0\narch_bits:64\nmultiplexing_api:epoll\nprocess_id:8353\nuptime_in_seconds:2592232\nuptime_in_days:30\nlru_clock:809325\nused_cpu_sys:199.20\nused_cpu_user:309.26\nused_cpu_sys_children:12.04\nused_cpu_user_children:1.47\nconnected_clients:2\nconnected_slaves:0\nclient_longest_output_list:0\nclient_biggest_input_buf:0\nblocked_clients:0\nused_memory:6596112\nused_memory_human:6.29M\nused_memory_rss:17571840\nmem_fragmentation_ratio:2.66\nuse_tcmalloc:0\nloading:0\naof_enabled:0\nchanges_since_last_save:0\nbgsave_in_progress:0\nlast_save_time:1371241671\nbgrewriteaof_in_progress:0\ntotal_connections_received:118\ntotal_commands_processed:1091\nexpired_keys:441\nevicted_keys:0\nkeyspace_hits:6\nkeyspace_misses:1070\nhash_max_zipmap_entries:512\nhash_max_zipmap_value:64\npubsub_channels:0\npubsub_patterns:0\nvm_enabled:0\nrole:master\ndb0:keys=91,expires=88<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Important values include:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>connected_clients<\/code> \u2013 Number of connected clients.<\/li>\n\n\n\n<li><code>used_memory_human<\/code> \u2013 Human-readable Redis memory usage.<\/li>\n\n\n\n<li><code>role<\/code> \u2013 Indicates whether the instance is acting as a master or replica in the replication setup.<\/li>\n\n\n\n<li><code>keyspace_hits<\/code> and <code>keyspace_misses<\/code> \u2013 Useful for understanding cache hit and miss activity.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Changing Runtime Configuration<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Step 11: View Redis Configuration<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Use <code>CONFIG GET *<\/code> to display active configuration parameters:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">CONFIG GET *<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Example output:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">1) \"dir\"\n2) \"\/var\/lib\/redis\"\n3) \"dbfilename\"\n4) \"dump.rdb\"\n5) \"requirepass\"\n6) (nil)\n7) \"masterauth\"\n8) (nil)\n9) \"maxmemory\"\n10) \"0\"\n11) \"maxmemory-policy\"\n12) \"volatile-lru\"\n13) \"maxmemory-samples\"\n14) \"3\"\n15) \"timeout\"\n16) \"300\"\n17) \"appendonly\"\n18) \"no\"\n19) \"no-appendfsync-on-rewrite\"\n20) \"no\"\n21) \"appendfsync\"\n22) \"everysec\"\n23) \"save\"\n24) \"900 1 300 10 60 10000\"\n25) \"slave-serve-stale-data\"\n26) \"yes\"\n27) \"hash-max-zipmap-entries\"\n28) \"512\"\n29) \"hash-max-zipmap-value\"\n30) \"64\"\n31) \"list-max-ziplist-entries\"\n32) \"512\"\n33) \"list-max-ziplist-value\"\n34) \"64\"\n35) \"set-max-intset-entries\"\n36) \"512\"\n37) \"slowlog-log-slower-than\"\n38) \"10000\"\n39) \"slowlog-max-len\"\n40) \"64\"<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The output contains configuration keys and values alternately.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Step 12: Change Runtime Configuration<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">You can use <code>CONFIG SET<\/code> to change a supported configuration parameter at runtime.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For example:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">CONFIG SET timeout 900<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Runtime configuration changes take effect immediately. If the change needs to persist after a Redis restart, make sure the corresponding Redis configuration is updated according to the Redis version and configuration method being used.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Managing Redis Databases<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Step 13: Select a Redis Database<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Redis supports multiple logical databases. Database <code>0<\/code> is selected by default.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To switch to database <code>1<\/code>:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">SELECT 1<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Example:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">redis 127.0.0.1:6379> SELECT 1\nOK\nredis 127.0.0.1:6379[1]><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The <code>[1]<\/code> in the prompt indicates that database 1 is currently selected.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To check database information:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">redis-cli INFO | grep ^db<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Example:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">db0:keys=91,expires=88\ndb1:keys=1,expires=0<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Step 14: Delete Database Data<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">To remove all keys from the currently selected database:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">FLUSHDB<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">To remove all keys from all Redis databases:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">FLUSHALL<\/pre>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\"><strong>Warning:<\/strong> These commands permanently remove Redis data. Use them with extreme care, especially on production servers.<\/p>\n<\/blockquote>\n\n\n\n<h2 class=\"wp-block-heading\">Redis Replication<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Step 15: Check Replication Status<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Use the <code>INFO<\/code> command to determine whether a Redis instance is a master or replica:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">INFO<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Look for the <code>role<\/code> value:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">role:master<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">or:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">role:slave<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Modern Redis versions use the term <strong>replica<\/strong> instead of <strong>slave<\/strong> in configuration and documentation.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For older Redis versions, replication information may look like:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">slave0:ip=127.0.0.1,port=6380,state=online,offset=281,lag=0<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Step 16: Configure Replication<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">In older Redis versions, the following command can be used to configure an instance as a replica:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">SLAVEOF &lt;IP> &lt;port><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">For example:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">SLAVEOF 192.168.1.10 6379<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">To stop the replication relationship:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">SLAVEOF NO ONE<\/pre>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\"><strong>Note:<\/strong> <code>SLAVEOF<\/code> is retained for compatibility with older Redis versions. Modern Redis configurations commonly use <code>REPLICAOF<\/code>.<\/p>\n<\/blockquote>\n\n\n\n<p class=\"wp-block-paragraph\">For a complete master-replica setup, refer to the related Redis replication guide below.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Debugging Redis Latency<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Step 17: Measure Intrinsic System Latency<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Redis provides a command for measuring intrinsic system latency:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">redis-cli --intrinsic-latency 100<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">You can also measure latency from a Redis client:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">redis-cli --latency -h &lt;host> -p &lt;port><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">If you experience high latency, investigate system-level factors such as CPU, memory, disk I\/O, network performance, and kernel configuration.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The original guide also recommends checking Transparent Huge Pages (THP):<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">echo never > \/sys\/kernel\/mm\/transparent_hugepage\/enabled<\/pre>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\"><strong>Note:<\/strong> THP configuration is system-specific. Test any kernel-level change before applying it to a production server.<\/p>\n<\/blockquote>\n\n\n\n<h2 class=\"wp-block-heading\">Redis Database Backup<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Step 18: Create an RDB Backup<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Redis can create an RDB snapshot in the background using:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">BGSAVE<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Redis creates the snapshot in the background without blocking the main Redis process for the duration of the dump.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To check when the last successful save occurred:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">LASTSAVE<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">For a synchronous save, use:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">SAVE<\/pre>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\"><strong>Important:<\/strong> <code>SAVE<\/code> can block Redis while the snapshot is being created, so use it carefully on production systems. For routine backups, <code>BGSAVE<\/code> or an appropriate Redis backup strategy is generally preferable.<\/p>\n<\/blockquote>\n\n\n\n<h2 class=\"wp-block-heading\">Managing Redis Connections<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Step 19: List Active Connections<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Use the following command to list connected clients:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">CLIENT LIST<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Step 20: Terminate a Client Connection<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">The original command format is:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">CLIENT KILL &lt;IP>:&lt;port><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Use client-management commands carefully because terminating an active application connection may affect the application using Redis.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Monitoring Redis Traffic<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Step 21: Monitor Commands in Real Time<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">The <code>MONITOR<\/code> command displays incoming Redis commands in real time:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">MONITOR<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Example:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">redis 127.0.0.1:6379> MONITOR\nOK\n1371241093.375324 \"monitor\"\n1371241109.735725 \"keys\" \"*\"\n1371241152.344504 \"set\" \"testkey\" \"1\"\n1371241165.169184 \"get\" \"testkey\"<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">This can be useful for troubleshooting application behavior.<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\"><strong>Warning:<\/strong> <code>MONITOR<\/code> can generate a large amount of output and may impact Redis performance. Avoid running it continuously on busy production instances.<\/p>\n<\/blockquote>\n\n\n\n<h3 class=\"wp-block-heading\">Step 22: Monitor Slow Commands<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">You can combine <code>SLOWLOG RESET<\/code> and <code>SLOWLOG GET<\/code> to inspect slow commands during a specific period:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">SLOWLOG RESET<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Wait for the required monitoring period and then run:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">SLOWLOG GET 25<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">This returns the 25 slowest commands recorded during that period.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Redis provides a wide range of commands for managing keys, strings, lists, hashes, databases, replication, backups, connections, configuration, and performance.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Commands such as <code>GET<\/code>, <code>SET<\/code>, <code>DEL<\/code>, <code>INFO<\/code>, <code>SLOWLOG<\/code>, <code>CLIENT LIST<\/code>, <code>BGSAVE<\/code>, and <code>MONITOR<\/code> are useful for everyday Redis administration and troubleshooting.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">When working with production Redis servers, take extra care with commands such as <code>KEYS<\/code>, <code>FLUSHDB<\/code>, <code>FLUSHALL<\/code>, and <code>MONITOR<\/code>, as they can have a significant impact on performance or data.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">FAQs<\/h2>\n\n\n\n<h4 class=\"wp-block-heading\">1. What is the default Redis port?<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">The standard Redis port is <strong>6379<\/strong>. Always verify the port configured on your Redis server before connecting.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">2. How can I check Redis server information?<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">Run:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">redis-cli INFO<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">This provides information about memory usage, connected clients, commands processed, replication, databases, and other server statistics.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">3. What is the difference between <code>FLUSHDB<\/code> and <code>FLUSHALL<\/code>?<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\"><code>FLUSHDB<\/code> removes keys from the currently selected database, while <code>FLUSHALL<\/code> removes keys from all Redis databases.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">4. How can I find Redis keys?<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">You can use:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">KEYS pattern<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">However, avoid <code>KEYS<\/code> on large production databases. <code>SCAN<\/code> is generally more appropriate for safely iterating through a large keyspace.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">5. How can I check Redis replication status?<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">Run:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">INFO<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Then check the <code>role<\/code> field to determine whether the Redis instance is a primary or replica.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Related Articles<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Redis Master and Slave Setup<\/strong> \u2013 Learn how to configure Redis replication between a master and slave\/replica server and understand the basic Redis replication setup.<br><a href=\"https:\/\/pheonixsolutions.com\/blog\/redismaster-and-slave-setup\/?utm_source=chatgpt.com\" target=\"_blank\" rel=\"noreferrer noopener\">Read the article<\/a><\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction Redis is an in-memory data store commonly used for caching, session management, counters, queues, and other high-performance applications. This [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[1022],"tags":[],"class_list":["post-618","post","type-post","status-publish","format-standard","hentry","category-web-architecture","psol-cat-web-architecture"],"jetpack_publicize_connections":[],"jetpack_shortlink":"https:\/\/wp.me\/phn2x7-9Y","jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/618","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/comments?post=618"}],"version-history":[{"count":2,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/618\/revisions"}],"predecessor-version":[{"id":11467,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/618\/revisions\/11467"}],"wp:attachment":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/media?parent=618"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/categories?post=618"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/tags?post=618"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}