Skip to content
masterclass Buddy

Redis · Command

GETBIT

GETBIT reads one bit at a zero-based offset in a Redis String. It returns 0 or 1.

Last updated

Since
2.2.0

Syntax

GETBIT key offset

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • SETBIT
  • BITCOUNT
  • BITOP
  • BITPOS

Source: GETBIT | Docs. Checked 2026-11-03.