fakeredis icon indicating copy to clipboard operation
fakeredis copied to clipboard

Fake implementation of redis API (redis-py) for testing purposes

Results 10 fakeredis issues
Sort by recently updated
recently updated
newest added

pytest summary warnings ```console ============================================================================= warnings summary ============================================================================= ../../../../../usr/lib/python3.8/site-packages/pytest_asyncio/plugin.py:191 /usr/lib/python3.8/site-packages/pytest_asyncio/plugin.py:191: DeprecationWarning: The 'asyncio_mode' default value will change to 'strict' in future, please explicitly use 'asyncio_mode=strict' or 'asyncio_mode=auto' in pytest configuration...

Hi Are there any plans to add support for the SMISMEMBER command? https://redis.io/commands/smismember

It would be nice if fakeredis supported LUA scripts like redis does. [LUA bindings for python](http://labix.org/lunatic-python) are available so it might not be that hard - never used them though....

FeatureRequest

Great work on this library. Just wondering, have you considered adding a `tick` method or some sort of frozen time mode to FakeRedis that allows programmatic advancing of time to...

HelpWanted

Hi, I discovered today when using the function `brpoplpush`, setting a timeout with a float value will result in the returned error: `timeout is negative`. I have been able to...

The Lua scripting support (EVAL) does not perfectly emulate the environment available to a real redis script. Some known differences are: - Libraries such as cjson are not loaded -...

HelpWanted

from version 3.2 Redis implemented geospatial commands, this would be really helpful to test in some cases.

FeatureRequest
HelpWanted

I'm packaging your module as an rpm package so I'm using the typical PEP517 based build, install and test cycle used on building packages from non-root account. - `python3 -sBm...

Hi, if you specify a health_check_interval with FakeAsyncRedis, it fails health_check_interval=timeout, My workaround that doesn't require me to install FakeRedis in my main codebase to get isinstance to work: if...

As an example: ```python import redis import fakeredis r = fakeredis.FakeStrictRedis() r.json().set('a', '$', {'hello': 'world'}) print('fakeredis:') print(r.json().mget(['a'], '$')) r = redis.StrictRedis() r.json().set('a', '$', {'hello': 'world'}) print('redis:') print(r.json().mget(['a'], '$')) ``` This...