Home > Database > Redis > body text

What does redis cache mean?

藏色散人
Release: 2019-07-05 14:39:10
Original
3272 people have browsed it

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template