TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Redis Loadable Modules System

297 点作者 djanowski大约 9 年前

19 条评论

educar大约 9 年前
The docs explain the module system (<a href="https:&#x2F;&#x2F;github.com&#x2F;antirez&#x2F;redis&#x2F;blob&#x2F;unstable&#x2F;src&#x2F;modules&#x2F;INTRO.md" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;antirez&#x2F;redis&#x2F;blob&#x2F;unstable&#x2F;src&#x2F;modules&#x2F;I...</a>) but it doesn&#x27;t quiet explain what the system is for. I couldn&#x27;t quite get that from reading the blog post or the doc page. Specifically:<p>What kind of modules did you have in mind when designing this? Are any of the below possible?<p>* ldap backend login system<p>* multi-tenant redis<p>* alternate db format&#x2F;file system.<p>* implement a new redis data type. say built-in date support<p>* can i implement new commands and operators on said data types<p>An of course, thanks for this fantastic software. We use it everyday. Will read in more detail about this over the weekend :-)
评论 #11672321 未加载
评论 #11672691 未加载
astrodust大约 9 年前
There&#x27;s been a lot of unusual features I&#x27;ve been hoping Redis will support but obviously given their edge-case nature it&#x27;s unlikely that they&#x27;d ever be implemented.<p>This is great to see. Instead of cluttering up the core engine with junk people can mix in their own functionality.
aaw大约 9 年前
This looks interesting. I&#x27;ve only glanced at the docs, but it looks like this module system lets you define new commands but not necessarily new data structures (since you&#x27;d have to implement RDB&#x2F;AOF serialization for those).<p>Are there plans for that? It&#x27;s probably possible to do most of that with this module system but you&#x27;d have to serialize the data structure into a string and &quot;type X&quot; wouldn&#x27;t return your custom data structure type.
评论 #11670569 未加载
评论 #11670589 未加载
BadgerEmeritus大约 9 年前
This is great and long awaited, please consider some kind of a namespacing scheme for module-defined commands though, or things can easily become messy. In the module example the &quot;hello.&quot; prefix is specified for all defined commands - it would probably be better to specify it once on module initialization and have all commands defined by the module prefixed with it automatically, the module registries could then manage the prefix registration&#x2F;allocation to module authors.
avar大约 9 年前
Since Redis is BSD licensed I wouldn&#x27;t be surprised if this is the start of popular paid-for proprietary third party modules.
评论 #11670855 未加载
spullara大约 9 年前
I once built something like this for Redis but never really thought he would do it!<p><a href="https:&#x2F;&#x2F;github.com&#x2F;spullara&#x2F;redis&#x2F;tree&#x2F;plugins" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;spullara&#x2F;redis&#x2F;tree&#x2F;plugins</a>
评论 #11671497 未加载
derefr大约 9 年前
If these modules are going to be as fast as the native commands, is there any reason to not lift the entire native command set out into a set of &quot;base&quot; modules?
评论 #11672356 未加载
shawn-butler大约 9 年前
How people can code on airplanes amazes me. I have tried but the cramped space, the constant interruptions.. I never get much done.
评论 #11671341 未加载
评论 #11670749 未加载
评论 #11671693 未加载
评论 #11671758 未加载
评论 #11670722 未加载
评论 #11670677 未加载
akbar501大约 9 年前
@antirez, is Redis 4.0 going to be part of the more rapid release schedule (will we see it in 3, 6 months) or are major upgrades still annual releases (we&#x27;ll see 4.0 in 12 months)?
评论 #11671369 未加载
manigandham大约 9 年前
<a href="https:&#x2F;&#x2F;github.com&#x2F;RedisLabsModules&#x2F;redex" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;RedisLabsModules&#x2F;redex</a><p>Shows some sample modules from Redis Labs called RedisEx, pretty useful stuff (although most of these should really be in Redis by now but at least it&#x27;s an option to include as modules).
评论 #11672341 未加载
maerF0x0大约 9 年前
they also announced a couple of &quot;hubs&quot; for hosting&#x2F;discovering these plugins, plus a vetted one by redislabs
评论 #11670619 未加载
evantahler大约 9 年前
So who is adding node.js support?!
MasterScrat大约 9 年前
Someone should really implement an interval module.<p>This custom implementation was pretty good: <a href="http:&#x2F;&#x2F;blog.togo.io&#x2F;how-to&#x2F;adding-interval-sets-to-redis&#x2F;" rel="nofollow">http:&#x2F;&#x2F;blog.togo.io&#x2F;how-to&#x2F;adding-interval-sets-to-redis&#x2F;</a>
halayli大约 9 年前
I bet a package manager will follow it. redis install moduleX and then we&#x27;ll have lib and target dependencies.
评论 #11671362 未加载
lsiebert大约 9 年前
Super excited to hear about this at Redis Conf, looking forward to implementing a few ideas.
therein大约 9 年前
Sounds exciting. Hopefully it won&#x27;t be as under-appreciated as Apache Traffic Server&#x27;s plugin system.
awinter-py大约 9 年前
databases (redis included) are awesome. It&#x27;s always surprising to me that we don&#x27;t run web apps directly on the database; they&#x27;re high-performance, durable and parallel, and for some apps are already the perf bottleneck.<p>I think the only reason we don&#x27;t is that deployment and testing isn&#x27;t straightforward. Fingers crossed antirez will get this right.
评论 #11672309 未加载
angelbob大约 9 年前
I&#x27;m hoping there&#x27;s an easy way to turn this off for the foreseeable future, to avoid all the obvious security holes this is likely to introduce.
评论 #11670864 未加载
MBCook大约 9 年前
I tried to read the article but I couldn&#x27;t. It&#x27;s all one big &lt;pre&gt; block. The word wrapping is wrong on input! Individual paragraphs are groups of individual lines and extra long lines that the browser wraps for you. So you end up with lines in the middle of paragraphs that only have one or two words.<p>Net result is it&#x27;s very hard to read.<p>I tried Safari&#x27;s reader mode, but that was even worse. Because all formatting comes from happenstance in the &lt;pre&gt; tag reader mode loses <i>all</i> formatting. The entire article (and code!) becomes one long block of text.<p>I&#x27;m continually amazed at people&#x27;s attempts to reinvent text layout in the browser.
评论 #11670762 未加载
评论 #11672297 未加载