Database.Guide

Skip to content

Beginners

  • What is a Database?
  • Database Tutorial

SQL

  • SQL Tutorial
  • SQL Reference
  • SQL Joins Tutorial
  • SQL Transactions Tutorial
  • Basic SQL Queries

Categories

  • Azure SQL Edge (17)
  • Database Concepts (99)
  • Database Tools (72)
  • DBMS (9)
  • DuckDB (138)
  • MariaDB (424)
  • Microsoft Access (17)
  • MongoDB (265)
  • MySQL (602)
  • NoSQL (8)
  • Oracle (301)
  • PostgreSQL (480)
  • Redis (210)
  • SQL (697)
  • SQL Server (1,169)
  • SQLite (298)

Category: NoSQL

Redis ZMPOP Command Explained

Posted on January 1, 2023January 1, 2023 by Ian

In Redis, the ZMPOP command removes and returns one or more elements from the first non-empty sorted set in the provided list of keys.

The ZMPOP command was introduced in Redis 7.0.0.

Continue reading →
Redis commands, what is

Redis ZCARD Command Explained

Posted on December 31, 2022December 31, 2022 by Ian

In Redis, the ZCARD command returns the cardinality (number of elements) of a sorted set.

Continue reading →
Redis commands, what is

Redis ZINTERSTORE Command Explained

Posted on December 30, 2022December 30, 2022 by Ian

In Redis, the ZINTERSTORE command computes the intersection of the specified sorted sets and stores the result in the specified key. It works the same as the ZINTER command, except that it stores the result instead of returning it.

If the destination key already exists, it’s overwritten.

Continue reading →
Redis commands, what is

Redis ZINTER Command Explained

Posted on December 29, 2022January 4, 2023 by Ian

In Redis, the ZINTER command returns the intersection of the specified sorted sets. In other words, it returns only those members that are present in all sorted sets.

Continue reading →
Redis commands, what is

Fix “WRONGTYPE Operation against a key holding the wrong kind of value” when using LRANGE in Redis

Posted on December 29, 2022December 29, 2022 by Ian

If you get an error that reads “WRONGTYPE Operation against a key holding the wrong kind of value” when using the LRANGE command, it’s probably because you’re passing a key with the wrong data type.

To fix this issue, be sure that the key you pass to the LRANGE command holds a list.

Continue reading →
Redis errors, how to

Redis ZDIFFSTORE Command Explained

Posted on December 28, 2022 by Ian

In Redis, the ZDIFFSTORE command computes the difference between the first and all successive input sorted sets and stores the result in the specified key.

ZDIFFSTORE works in the same way as the ZDIFF command, except that it stores the result instead of returning it (ZDIFF returns the result instead of storing it in a new key).

Continue reading →
Redis commands, what is

Redis ZDIFF Command Explained

Posted on December 27, 2022December 28, 2022 by Ian

In Redis, the ZDIFF command returns the difference between the first and all successive input sorted sets.

Continue reading →
Redis commands, what is

Redis ZCOUNT Command Explained

Posted on December 26, 2022December 26, 2022 by Ian

In Redis, the ZCOUNT command returns the number of elements in a sorted set with a score between two given values.

Continue reading →
Redis commands, what is

Redis ZREVRANK Command Explained

Posted on December 25, 2022December 25, 2022 by Ian

In Redis, the ZREVRANK command returns the rank of the specified element of a sorted set ordered in descending order (from high to low).

If we want the set to be in ascending order, we can use the ZRANK command.

Continue reading →
Redis commands, what is

Redis ZRANK Command Explained

Posted on December 24, 2022January 4, 2023 by Ian

In Redis, the ZRANK command returns the rank of the specified element of a sorted set.

The scores are ordered from low to high. If we want them in the opposite order, we can use the ZREVRANK command.

Continue reading →
Redis commands, what is
  • «
  • 1
  • …
  • 3
  • 4
  • 5
  • 6
  • 7
  • …
  • 49
  • »

About Database.Guide | Privacy Policy