/home/techb158/ileadtechnology.com/vendor/predis/predis/examples
NameSizeModeActions
custom_cluster_distributor.php28010644editdlrm
debuggable_connection.php23520644editdlrm
dispatcher_loop.php21660644editdlrm
executing_redis_commands.php14640644editdlrm
key_prefixing.php8910644editdlrm
lua_scripting_abstraction.php17210644editdlrm
monitor_consumer.php15730644editdlrm
pipelining_commands.php10060644editdlrm
pubsub_consumer.php20330644editdlrm
redis_collections_iterators.php28120644editdlrm
replication_complex.php26170644editdlrm
replication_sentinel.php21620644editdlrm
replication_simple.php17670644editdlrm
session_handler.php18930644editdlrm
shared.php10250644editdlrm
transaction_using_cas.php15420644editdlrm
Edit: /home/techb158/ileadtechnology.com/vendor/predis/predis/examples/key_prefixing.php (891B)
* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ require __DIR__.'/shared.php'; // Predis can prefix keys found in commands arguments before sending commands to // Redis, even for complex commands such as SORT, ZUNIONSTORE and ZINTERSTORE. // Prefixing keys can be useful to create user-level namespaces for you keyspace // thus reducing the need for separate logical databases in certain scenarios. $client = new Predis\Client($single_server, array('prefix' => 'nrk:')); $client->mset(array('foo' => 'bar', 'lol' => 'wut')); var_export($client->mget('foo', 'lol')); /* array ( 0 => 'bar', 1 => 'wut', ) */ var_export($client->keys('*')); /* array ( 0 => 'nrk:foo', 1 => 'nrk:lol', ) */