Cheat Sheet #day23 - RedisInsight

Cheat Sheet #day23 - RedisInsight

RedisInsight Cheat Sheet

RedisInsight is a powerful tool for managing and optimizing your Redis database. This cheat sheet provides a quick reference to essential features and shortcuts to enhance your productivity with RedisInsight.

Basic Operations

  • Connect to Redis

    • Navigate to the "Connect" screen and enter the Redis server details such as host, port, and authentication.
  • Switch Databases

    • Use the database selector dropdown to switch between different Redis databases.
  • Refresh Keys

    • Click the "Refresh" button to update the list of keys in the current database.

Key Management

  • Add Key

    • Click the "Add Key" button.

    • Select the key type (String, List, Set, Sorted Set, Hash, Stream).

    • Enter the key name and value.

  • Delete Key

    • Select the key from the list.

    • Click the "Delete" button or right-click and select "Delete Key".

  • Edit Key

    • Select the key from the list.

    • Edit the key value in the editor pane.

  • Expire Key

    • Select the key from the list.

    • Click the "Set TTL" button to set the expiration time.

Data Types

  • String

    • Add or modify simple string values.

    • Support for viewing and editing large text and binary data.

  • List

    • Add elements to the beginning or end of the list.

    • View, edit, or remove elements by index.

  • Set

    • Add or remove members.

    • View all set members.

  • Sorted Set (ZSet)

    • Add members with scores.

    • Edit scores or remove members.

  • Hash

    • Add, edit, or remove fields and values.

    • View all fields and values.

  • Stream

    • Add entries to the stream.

    • View and manage stream entries.

  • Filter Keys

    • Use the search bar to filter keys by pattern (e.g., user:*).
  • Run Commands

    • Open the "Command Line" tool.

    • Type and run Redis commands directly.

  • Query Execution Plan

    • Use the "Query Execution Plan" tool to analyze and optimize query performance.

Monitoring and Analysis

  • Keyspace Analysis

    • View statistics on key distribution, types, and sizes.

    • Identify large keys and memory usage patterns.

  • Slow Log

    • Access the "Slow Log" to view and analyze slow-running queries.
  • Performance Metrics

    • Monitor real-time performance metrics such as CPU usage, memory usage, and command throughput.

Shortcuts and Tips

  • Toggle Sidebar

    • Ctrl+B (Windows/Linux)

    • Cmd+B (Mac)

  • Open Command Line

    • Ctrl+Shift+C (Windows/Linux)

    • Cmd+Shift+C (Mac)

  • Refresh Keys

    • Ctrl+R (Windows/Linux)

    • Cmd+R (Mac)

  • Search Keys

    • Ctrl+F (Windows/Linux)

    • Cmd+F (Mac)

Advanced Features

  • Data Import/Export

    • Use the "Import" and "Export" tools to back up and restore Redis data.
  • Pub/Sub

    • Manage publish/subscribe channels.

    • Monitor real-time messages.

  • Configuration Management

    • Access and modify Redis configuration parameters.
  • Cluster Management

    • Visualize and manage Redis clusters and shards.

Helpful Resources

  • Official Documentation

  • Community Support

    • Join the Redis community forums and discussions for additional help and support.

This cheat sheet provides a quick reference to some of the most commonly used RedisInsight features and shortcuts. For more detailed information and additional features, refer to the official RedisInsight documentation.

Did you find this article valuable?

Support Cloud Tuned by becoming a sponsor. Any amount is appreciated!