MCPcopy
hub / github.com/redis/redis-py / test_increx_default

Method test_increx_default

tests/test_asyncio/test_commands.py:1706–1710  ·  view source on GitHub ↗
(self, r: redis.Redis)

Source from the content-addressed store, hash-verified

1704
1705 @skip_if_server_version_lt("8.7.0")
1706 async def test_increx_default(self, r: redis.Redis):
1707 key = "increx:default"
1708 assert await r.set(key, 10)
1709 assert await r.increx(key) == [11, 1]
1710 assert await r.get(key) == b"11"
1711
1712 @skip_if_server_version_lt("8.7.0")
1713 async def test_increx_byint(self, r: redis.Redis):

Callers

nothing calls this directly

Calls 3

increxMethod · 0.80
setMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected