{"repo":"stipsan/ioredis-mock","free":true,"listed":false,"github":"https://github.com/stipsan/ioredis-mock","clone":"git clone https://github.com/stipsan/ioredis-mock.git","description":"Emulates ioredis by performing all operations in-memory.","language":"JavaScript","stars":390,"topics":["redis","node","mocking","emulator","ioredis","redis-server"],"license":"MIT","category":"databases-storage","readme_excerpt":"ioredis-mock &middot; This library emulates ioredis by performing all operations in-memory. The best way to do integration testing against redis and ioredis is on a real redis-server instance. However, there are cases where mocking the redis-server is a better option. Cases like: - Your workflow already use a local redis-server instance for the dev server. - You're on a platform without an official redis release, that's even worse than using an emulator. - You're running tests on a CI, setting it up is complicated. If you combine it with CI that also run selenium acceptance testing it's even more complicated, as two redis-server instances on the same CI build is hard. - The GitHub repo have bots that run the testing suite and is limited through npm package.json install scripts and can't fire up servers. (Having Renovatebot notifying you when a new release of ioredis is out and wether your code breaks or not is awesome). Check the compatibility table for supported redis commands. Usage (try it in your browser with RunKit) Browser usage (Experimental) There's a browser build available. You can import it directly ( import Redis from 'ioredis-mock/browser.js' ), or use it on unpkg.com: Breaking Changes from v7 to v8 ioredis@v4 support dropped ioredis@v5 is the new baseline. Stay on ioredis-mock@v7 until you're ready to upgrade to ioredis@v5 . PromiseContainer has been removed. Support for third-party Promise libraries is dropped. The native Promise library will always be used. fr","default_branch":null,"files":null,"tree":[],"storefront":"/r/stipsan","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/stipsan/ioredis-mock/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}