antirez/redis — Issue #370: support Matrix datatype
Author: guileen
Created: 2012-03-02 21:07:45+00:00
State: open

Redis, not only a key-value store, it's an awesome data structure store.

Hash give us some kind of single direction matrix

HSET row col v
HGETALL row

but we can't `HGETALL col`

if there is a MATRIX data type, we can do

XSET row col v
XROW row
XCOL col

Alternative, is it possible redis provide a command like

HGETALLBYFIELD field
HVALSBYFIELD field

for now, sometimes we have to save 2 Hash

HSET row col v
HSET col row v

Or, worse

SET "row:col" v

that we can't retrieval the same row columns or same column rows.