Redis Radix Tree Example

While I was looking at the Redis Source code, after not doing that for a while, I noticed the addition of the Radix Tree Implementation, which apparently is still not added to the Redis Modules API yet.

From what I can tell now, Radix Trees are used to implement the new Streams, where were added to Redis 5.0

Radix Tree is a power data structure that can be used for some Applications.

In this post I just want provide a very simple C program that uses Redis Radix Trees to implement a basic associate array, where both the key and the value are strings.