Home >Database >Redis >What does redis cache mean?

What does redis cache mean?

藏色散人
藏色散人Original
2019-07-05 14:39:103305browse

What does redis cache mean?

What does redis cache mean?

Redis cache is an open source log-type Key-Value database written in ANSIC language, supports network, can be memory-based and persistent, and provides APIs in multiple languages.

redis caching considerations

In order to run a Redis cache that optimizes the performance of popular queries, you should first determine the query results you wish to cache. Of these, you should focus on the most commonly used and most time-consuming queries, and then determine which data within the queries should be buffered. For simplicity, all column values ​​returned by the query are cached.

Define a naming convention for key values; keys can be constructed using a combination of row primary keys and column names.

For example, the product description whose primary key ID is 198278 can be stored with the key value of '198278:descry'. Make sure your naming convention is simple and rule-driven to facilitate programmatic creation of keys with minimal code.

For more Redis related technical articles, please visit the Redis usage tutorial column to learn!

The above is the detailed content of What does redis cache mean?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:What is redis server?Next article:What is redis server?