Compute
Elastic Cloud Server
Huawei Cloud Flexus
Bare Metal Server
Auto Scaling
Image Management Service
Dedicated Host
FunctionGraph
Cloud Phone Host
Huawei Cloud EulerOS
Networking
Virtual Private Cloud
Elastic IP
Elastic Load Balance
NAT Gateway
Direct Connect
Virtual Private Network
VPC Endpoint
Cloud Connect
Enterprise Router
Enterprise Switch
Global Accelerator
Management & Governance
Cloud Eye
Identity and Access Management
Cloud Trace Service
Resource Formation Service
Tag Management Service
Log Tank Service
Config
OneAccess
Resource Access Manager
Simple Message Notification
Application Performance Management
Application Operations Management
Organizations
Optimization Advisor
IAM Identity Center
Cloud Operations Center
Resource Governance Center
Migration
Server Migration Service
Object Storage Migration Service
Cloud Data Migration
Migration Center
Cloud Ecosystem
KooGallery
Partner Center
User Support
My Account
Billing Center
Cost Center
Resource Center
Enterprise Management
Service Tickets
HUAWEI CLOUD (International) FAQs
ICP Filing
Support Plans
My Credentials
Customer Operation Capabilities
Partner Support Plans
Professional Services
Analytics
MapReduce Service
Data Lake Insight
CloudTable Service
Cloud Search Service
Data Lake Visualization
Data Ingestion Service
GaussDB(DWS)
DataArts Studio
Data Lake Factory
DataArts Lake Formation
IoT
IoT Device Access
Others
Product Pricing Details
System Permissions
Console Quick Start
Common FAQs
Instructions for Associating with a HUAWEI CLOUD Partner
Message Center
Security & Compliance
Security Technologies and Applications
Web Application Firewall
Host Security Service
Cloud Firewall
SecMaster
Anti-DDoS Service
Data Encryption Workshop
Database Security Service
Cloud Bastion Host
Data Security Center
Cloud Certificate Manager
Edge Security
Situation Awareness
Managed Threat Detection
Blockchain
Blockchain Service
Web3 Node Engine Service
Media Services
Media Processing Center
Video On Demand
Live
SparkRTC
MetaStudio
Storage
Object Storage Service
Elastic Volume Service
Cloud Backup and Recovery
Storage Disaster Recovery Service
Scalable File Service Turbo
Scalable File Service
Volume Backup Service
Cloud Server Backup Service
Data Express Service
Dedicated Distributed Storage Service
Containers
Cloud Container Engine
SoftWare Repository for Container
Application Service Mesh
Ubiquitous Cloud Native Service
Cloud Container Instance
Databases
Relational Database Service
Document Database Service
Data Admin Service
Data Replication Service
GeminiDB
GaussDB
Distributed Database Middleware
Database and Application Migration UGO
TaurusDB
Middleware
Distributed Cache Service
API Gateway
Distributed Message Service for Kafka
Distributed Message Service for RabbitMQ
Distributed Message Service for RocketMQ
Cloud Service Engine
Multi-Site High Availability Service
EventGrid
Dedicated Cloud
Dedicated Computing Cluster
Business Applications
Workspace
ROMA Connect
Message & SMS
Domain Name Service
Edge Data Center Management
Meeting
AI
Face Recognition Service
Graph Engine Service
Content Moderation
Image Recognition
Optical Character Recognition
ModelArts
ImageSearch
Conversational Bot Service
Speech Interaction Service
Huawei HiLens
Video Intelligent Analysis Service
Developer Tools
SDK Developer Guide
API Request Signing Guide
Terraform
Koo Command Line Interface
Content Delivery & Edge Computing
Content Delivery Network
Intelligent EdgeFabric
CloudPond
Intelligent EdgeCloud
Solutions
SAP Cloud
High Performance Computing
Developer Services
ServiceStage
CodeArts
CodeArts PerfTest
CodeArts Req
CodeArts Pipeline
CodeArts Build
CodeArts Deploy
CodeArts Artifact
CodeArts TestPlan
CodeArts Check
CodeArts Repo
Cloud Application Engine
MacroVerse aPaaS
KooMessage
KooPhone
KooDrive

Compatible Commands

Updated on 2025-01-24 GMT+08:00

GeminiDB Redis API provides cluster and primary/standby instances. It is compatible with Redis Community Edition 5.0 and earlier versions, Redis 6.2 (including 6.2.X), and Redis 7.0 commands. You do not need to modify code when migrating applications to the cloud.

This section describes the compatibility of commands supported by GeminiDB Redis API 5.0, 6.2 (including 6.2.X), and 7.0, providing references to DBAs and developers.

Basic GeminiDB Commands

The following table lists commands provided by community Redis and compatibility of GeminiDB Redis API 5.0, 6.2 (including 6.2.X), and 7.0.

Table 1 Command compatibility of GeminiDB Redis API

Redis Command Classification

Description

Compatibility with GeminiDB Redis 5.0

Compatibility with GeminiDB Redis API 6.2 (Including 6.2.x)

Compatibility with GeminiDB Redis API 7.0

String

String commands

100%

100%

100%

Hash

Hash commands

100%

100%

100%

List

List commands

100%

100%

100%

Sorted set

Sorted set commands

100%

100%

100%

Set

Set commands

100%

100%

100%

Bitmap

Bitmap commands

100%

100%

100%

Stream

Stream commands

100%

The XGROUP subcommand createconsumer is not supported.

Features of version 7.0 are not supported.

GEO

GEO commands

100%

100%

100%

HyperLogLog

HyperLogLog commands

100%

100%

100%

Pub/Sub

Pub/Sub commands

100%

100%

100%

Scripting and function

Scripting and function commands

100%

100%

Features of version 7.0 are not supported.

Transactions

Transaction commands

100%

100%

100%

Generic

Generic commands

SWAPDB and MOVE commands are not supported.

The following commands are not supported:

SWAPDB and MOVE

100%

GeminiDB Redis API is compatible with some CLUSTER commands, including CLUSTER INFO, CLUSTER KEYSLOT, CLUSTER MYID, CLUSTER NODES, CLUSTER SLOTS, CLUSTER SHARDS and CLUSTER HELP.

Advanced GeminiDB Commands

  • EXHASH
    • Application scenarios: GeminiDB allows you to set an expiration time for each field of a hash key and is suitable for services such as frequency control and shopping cart.
    • Command list: For details, see EXHASH Commands.
    • Usage: For details, see EXHASH for Ad Frequency Control.
  • Bloom filter
    • Functions: A Bloom filter enables you to check if an element is present in a large-size collection. It is applicable to scenarios such as web interceptors and anti-cache penetration.
    • Command list: See Bloom filter.
    • Usage: See Bloom filter description.

GeminiDB O&M Commands

GeminiDB provides comprehensive and easy-to-use O&M functions based on the community Redis commands such as INFO, CLIENT, SLOWLOG, MONITOR, and CONFIG.

Table 2 O&M functions of GeminiDB Redis API

Function

GeminiDB O&M Functions

Community Redis Commands/Capabilities

Metrics

QPS, average latency, and p99 latency of commands, various metrics of nodes, and aggregation metrics of instances are provided.

INFO

Instance sessions

Client IP addresses and the top sessions of an instance are displayed. Users can kill sessions in batches with a few clicks.

CLIENT

Parameter configuration

Kernel parameters can be queried and modified with only a few clicks. Enhancement of CONFIG command provided by Redis Community Edition.

CONFIG

Viewing slow query logs

Slow query logs and diagnosis information can be displayed.

SLOWLOG

User permission management

The account management function is supported.

ACL (Access Control List)

Viewing audit logs

High-risk commands and operations can be audited.

MONITOR

Real-time big key diagnosis

Big keys are monitored in real time and without affecting services.

Not supported

Real-time hot key diagnosis

Hot keys are monitored in real time and without affecting services.

Not supported

Real-time key prefix analysis

Distribution of key prefixes is monitored in real time, which does not affect services.

Not supported

Critical command renaming

Users can modify command aliases and view renaming records.

You can rename commands by modifying configuration files.

Abnormal key circuit break

Specified keys can be shielded in one click to avoid access to services, which can be used for rapid data recovery.

Not supported

Precautions

  • GeminiDB Redis API does not support RESP3. Redis Serialization Protocol (RESP) is used for communication between a Redis server and a client. Mainstream clients such as Jedis use RESP2 by default, which can be used to access a GeminiDB Redis instance.
  • GeminiDB Redis API 7.0 does not support functions.

We use cookies to improve our site and your experience. By continuing to browse our site you accept our cookie policy. Find out more

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback