Efficient Bulk Hash Insertion with Redis 8.10’s HIMPORT
I’m not a Ruby developer, and my code samples might make that clear. However, there are two reasons I’m using Ruby for the examples in this article: 1. A new release of [redis-rb](https://github.com/redis/redis-rb). 2. Its support for a new Redis command: `HIMPORT`. ## Getting started Establishing a Redis connection in Ruby is straightforward. All you need is the redis gem and a Redis OSS server. **Fun fact**: A ruby is a gemstone, which is why software packages in Ruby are called gems. It’s a charming way to highlight the value of every package contributed by the community. ```ruby redis = Redis.new( host: options[:host], port: options[:port], username: options[:user], password: options[:password], himport_auto_prepare: true ) ``` The `himport_auto_prepare` option defaults to `true`. I included it here for reference. We’ll revisit it later. For now, just bear with me. ## Why another way for importing hashes? Why not just use...
