Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
predis は配列を hmget() の 2 番目のパラメーターとして使用して、一度に複数のフィールドを取得できますか? 例: $client->hmget($key, $fields); //$fields は配列です
文字列の多くのパラメータをフィールドとして受け入れることもできますか? 例: $client->hmget($key, $field1, $field2, $field3);
Predis リポジトリから
$redis->hmset('metavars', 'foo', 'bar', 'hoge', 'piyo', 'lol', 'wut'); $redis->hmget('metavars', 'foo', 'hoge', 'unknown'));
これを試すことができます:
$pd = $redis->hmget("regconfig" ,array("cont_mgr")); print_r($pd);