Redis query compiler (rqc) generates lua scripts to execute selection queries on redis sets.
Still under development.
go get github.com/mmcloughlin/rqc
Create a query builder with
builder := Builder{
Conn: conn,
Namespace: "queries",
}
Here Conn
is expected to be a redigo
redis connection. Namespace
is a prefix for all intermediate keys produced
in query execution.
There are a few similar projects out there and I learned a lot from digging around in their source code:
-
Zoom is an awesome library that offers similar funtionality at a higher level
-
django redis engine also contains very similar ideas