faeldt / redis-mock

Node.js redis client mock
112 stars 156 forks source link

Clear timeouts when deleting keys #48

Open brantwedel opened 8 years ago

brantwedel commented 8 years ago

This helps in tests, so that simply calling flushdb at the end of a test will clear timeouts so that the process can exit. The _expire timeouts are also cleared when deleting individual keys to guarantee a clean exit.