This document discusses using Redis and PHP for building high performance websites as an alternative to relational databases. Redis is presented as a fast key-value data store that supports advanced data structures like lists, sets, and sorted sets. Several PHP clients are described for interacting with Redis, including phpredis, Rediska, and Predis. The document suggests use cases for Redis like caching, logging, and messaging queues.
31. E.x: Records inserted in 14h High performance web apps: new challenges mysql> select count(1) from setacc; +----------+ | count(1) | +----------+ | 3982438 | +----------+ 1 row in set (0.00 sec) mysql> select count(1) from setacc_del; +----------+ | count(1) | +----------+ | 4003793 | +----------+ 1 row in set (0.00 sec)
80. Sample Redis PHP clients require_once 'Rediska/Key.php'; $key = new Rediska_Key('keyName'); // Set value $key->setValue('hello'); // Get value $key = new Rediska_Key('keyName'); $key->getValue(); #=> hello