|
|
|
|
|
by educar
3698 days ago
|
|
The docs explain the module system (https://github.com/antirez/redis/blob/unstable/src/modules/I...) but it doesn't quiet explain what the system is for. I couldn't quite get that from reading the blog post or the doc page. Specifically: What kind of modules did you have in mind when designing this? Are any of the below possible? * ldap backend login system * multi-tenant redis * alternate db format/file system. * implement a new redis data type. say built-in date support * can i implement new commands and operators on said data types An of course, thanks for this fantastic software. We use it everyday. Will read in more detail about this over the weekend :-) |
|
I work for Redis Labs, and over the course of the past few weeks we've experimented with some modules using the API. Some of the things we did that might answer some of your questions:
a PAM based authentication module, which IIRC can plug into LDAP potentially.
A bloom filter implementation on top of bitmaps.
An inverted index that doesn't use existing data types but rather creates compressed indexes directly using redis strings (I wrote that one personally BTW)
An API to store images on redis and retrieve them resized or cropped.
So right now the only way to create new data types is to piggyback strings as raw memory, but the final version of the API will include actually registering new data types.
You can see the modules we've released here: https://github.com/RedisLabsModules/