I need to automate/test the Redis caching in our project. How can I test, can anyone share the idea for testing or any existing project that is testing redis cache in api.
I am thinking to use fake-reddis to mock the redis in order to test api, but how to implements this i don't see in google anything.
How tools/language it will require?
It depends how you implement caching.
To use FakeRedis, you only need to replace the
Redis
class withFakeRedis
class. So wherever your cache configuration is, there should be host/port/class => for testing purposes, change the class.In django for example: