🚀 A robust, performance-focused, and full-featured Redis client for Node.js.
MIT License
Bot releases are visible (Hide)
Published by github-actions[bot] almost 2 years ago
Named export to support ESM imports in Typescript (#1695) (cdded57)
With this change, users would be able to import Redis with import { Redis} from 'ioredis'
. This makes it possible to import Redis in an ESM project. The original way (import Redis from 'ioredis'
) will still be supported but will be deprecated in the next major version.
Published by github-actions[bot] over 2 years ago
Published by github-actions[bot] over 2 years ago
In the update of v5, we've made ioredis even more stable and developer-friendly while minimizing the number of breaking changes, so you can spend more time enjoying your life 😄.
Please refer to the guideline to upgrade your projects: 🚀 Upgrading from v4 to v5.
slotsRefreshInterval
is disabled by default,allowUsernameInURI
is removed and ioredis will alwaysusername
part in new Redis("redis://username:[email protected]:6380/4")
allowUsernameInURI
is specified: new Redis("redis://username:[email protected]:6380/4?allowUsernameInURI=true")
.new Redis("redis://:[email protected]:6380/4")
Redis#serverInfo
is removed. This field is never documented soexports.Promise = require('bluebird')
) are kept but they don't take any effects. The native Promise will always be used.Redis
can't be called as a function anymore as it's now a class.Redis()
to new Redis()
. Note that Redis()
was already deprecatedPublished by github-actions[bot] over 2 years ago
Published by github-actions[bot] over 2 years ago