cunla / fakeredis-py

Implementation of Redis in python without having a Redis server running. Fully compatible with using redis-py.
https://fakeredis.moransoftware.ca/
BSD 3-Clause "New" or "Revised" License
299 stars 49 forks source link
python redis redis-stack testing

fakeredis: A fake version of a redis-py

badge CI badge badge badge Open Source Helpers Code style: black

Documentation is hosted in https://fakeredis.readthedocs.io/

Intro

FakeRedis is a pure-Python implementation of the Redis key-value store.

It enables running tests requiring redis server without an actual server.

It provides enhanced versions of the redis-py Python bindings for Redis. That provide the following added functionality: A built-in Redis server that is automatically installed, configured and managed when the Redis bindings are used. A single server shared by multiple programs or multiple independent servers. All the servers provided by FakeRedis support all Redis functionality including advanced features such as RedisJson, GeoCommands.

See official documentation for list of supported commands.

Sponsor

fakeredis-py is developed for free.

You can support this project by becoming a sponsor using this link.