Skip to content

Module commands ​

This reference covers the standalone redis-roaring module. For native commands in Redis 8.12 and later, see the Redis bitmap documentation. See the migration guide for command changes when moving an existing application.

Key Differences Between 32-bit and 64-bit Commands ​

AspectR.* (32-bit)R64.* (64-bit)
Value Range0 to 2^32-1 (≈4.3 billion)0 to 2^64-1 (≈18 quintillion)
Memory UsageLower for small datasetsHigher but supports larger ranges
PerformanceOptimized for 32-bit valuesOptimized for 64-bit values

Documentation Conventions ​

  • Commands use R. (32-bit) and R64. (64-bit) prefixes to distinguish them from standard Redis commands
  • 32-bit commands are suitable for most general use cases
  • 64-bit commands are designed for applications requiring large value ranges
  • Both command sets provide identical APIs where available, differing only in supported value ranges