Most people know that redis is a software used on the cache server. Similar to memcache, it can store massive amounts of data and store large-volume web websites and chat records, but it is different from memcache:
1. cached data can be persisted without cache time restrictions
2. Support more data types: string, list, set, sorted set, hash (reference: http://www.cnblogs.com/xhan/archive/2011/02/02/1948891.html)
3. Similar to memcache, data is stored in the memory, which is faster. However, redis has a mechanism that is more advanced and regularly saves data (new and modified) to the disk.
4. Multiple Data Warehouses (0-15)
5. It supports computing the Union, intersection, and population of sets on the server side. It also supports multiple sorting functions. So Redis can also be seen as a data structure server.
Redis also provides a graphical interface management tool PHPredisadmin, similar to the phpmyadmin page management tool provided by mysql, which is based on php code. PHPredisadmin mainly provides addition, deletion, modification, and query of key values, import and export of databases, and viewing info information. (Memcache has a dedicated monitoring interface, which will be mentioned in later blogs)
redis 127.0.0.1:6379[15]> info
In addition, from the performance perspective, I do not recommend using it in the online redis environment. After all, PHPredisadmin is a web interface for Managing massive big data, which consumes a large amount of system resources.
Phpredisadmin: https://github.com/ErikDubbelboer/phpRedisAdmin
Add KEY:
Search key:
It seems that only keys in the default database (0) can be seen in the phpredisadmin graphic interface. For example, if select 1 sets some keys in the database (1), it will not be seen in phpredisadmin, I don't know whether the phpredisadmin version is a problem or an operation problem.