Skip to content

Commit 7098720

Browse files
committed
Adding comment
1 parent 468129d commit 7098720

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

bitmapist/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -389,6 +389,8 @@ class MixinEventsMisc:
389389

390390
def has_events_marked(self):
391391
cli = get_redis(self.system)
392+
# Note: bitcount() returns 0 if the key doesn't exist
393+
# https://redis.io/docs/latest/commands/bitcount/
392394
return cli.bitcount(self.redis_key) > 0
393395

394396
def delete(self):

0 commit comments

Comments
 (0)