participants I use REDIS database and use PHP client http://rediska.geometria-lab.net/documentation/ Here i found type Sorted sets and try create users list for current user. My code is:
$sortedSet = new Rediska_Key_SortedSet('userslist'); // use collaction userslist
$sortedSet[1] = array('name' => 'Max');
$sortedSet[1] = array('name' => 'Vasile');
As I understand userslist indicates the name of the collection, and the number 1 in $ sortedSet [1] key. Then, in the console through the client redis-cli write:
127.0.0.1:6379> SMEMBERS 1: userslist
(empty list or set)
and get a empty blank ... prompt, what am I doing wrong? May be my concept is wrong?