A month ago, we published in our blog the thrilling first stable release of our library clj-rq. You can read more of this post here.
For the newcomers, clj-rq is a homebrewed library that wraps Jedis, being itself a simple Redis library for the Clojure ecosystem.
One of the first comments that got between ourselves, the moclojer team was how it would be complicated to update every helper function as the jedis/redis command interfaces changed throughout the years. Besides that, other important topics that got under our radar, in no specific order, were also:
This inspired us to remodel clj-rq
to dynamically generate itself, using this simplified procedure:
lpush
becomes push!
with the direction configurable through options;We distribute the library via Clojars.
deps.edn:
|
|
project.clj:
|
|
Be sure to check the latest versions incase you’re reading this in the future.
The “source code voyagers” will be pleased to see how this was implemented here.
For those who lack time, here follows a simple showcase of clj-rq
. Virtually, the lib didn’t change. the way it builds and works under the hood did.
|
|
For a more extensive documentation of the supported commands, give a look at our readme.
It is important to remember that this change doesn’t invalidate the work of our open source engineers. There was a lot of thought and time spent to make sure our lib is delivered top-notch and ready for production. It is, nonetheless, easier to maintain now 😃.
stuartsierra
’s component libIf you use stuartsierra’s component lib, we’ve also recently released our components
bundle version v0.1.0
. It wraps clj-rq
and presents you with a seamless and simple integration.
We distribute components
via Clojars.
deps.edn:
|
|
project.clj:
|
|
Be sure to check the latest versions incase you’re reading this in the future.
Thanks for reading. You can find more about moclojer, who we are, what we do, what we eat and more at our home page, our github, and maybe our product.