Skip to content

Commit

Permalink
Add sorted set functions to DefaultClient and update RedisCache funct…
Browse files Browse the repository at this point in the history
…ions
  • Loading branch information
Nazhixx committed Jul 23, 2023
1 parent cfb49b3 commit b875112
Show file tree
Hide file tree
Showing 2 changed files with 335 additions and 110 deletions.
28 changes: 24 additions & 4 deletions django_redis/cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,14 +205,14 @@ def zrevrange(self, *args, **kwargs):
def zrangebyscore(self, *args, **kwargs):
return self.client.zrangebyscore(*args, **kwargs)

@omit_exception
def zremrangebyscore(self, *args, **kwargs):
return self.client.zremrangebyscore(*args, **kwargs)

@omit_exception
def zrevrangebyscore(self, *args, **kwargs):
return self.client.zrevrangebyscore(*args, **kwargs)

@omit_exception
def zremrangebyscore(self, *args, **kwargs):
return self.client.zremrangebyscore(*args, **kwargs)

@omit_exception
def zrangebylex(self, *args, **kwargs):
return self.client.zrangebylex(*args, **kwargs)
Expand All @@ -232,3 +232,23 @@ def zlexcount(self, *args, **kwargs):
@omit_exception
def zrank(self, *args, **kwargs):
return self.client.zrank(*args, **kwargs)

@omit_exception
def zrevrank(self, *args, **kwargs):
return self.client.zrevrank(*args, **kwargs)

@omit_exception
def zremrangebyrank(self, *args, **kwargs):
return self.client.zremrangebyrank(*args, **kwargs)

@omit_exception
def zscore(self, *args, **kwargs):
return self.client.zscore(*args, **kwargs)

@omit_exception
def zcard(self, *args, **kwargs):
return self.client.zcard(*args, **kwargs)

@omit_exception
def zcount(self, *args, **kwargs):
return self.client.zcount(*args, **kwargs)
Loading

0 comments on commit b875112

Please sign in to comment.