k varchar not null primary key,
v jsonb
)
DONE
$s->_query(<<DONE);
create table $table\_sorted (
k varchar not null,
v jsonb not null,
score real not null,
"update redis set v = ?::jsonb where k = ?", { json => $value }, $key);
return 1 if $res->rows > 0;
$s->_query("insert into redis (k, v) values (?,?::jsonb)", $key, { json => $value } );
return
", $key)->expand;
my $json = $res->rows ? $res->hash->{v} : {};
$json->{$hkey} = $value;
$res = $s->_query("update redis set v = ?::jsonb where k = ?",{json=>$json},$key);
return 1 if