Then the data is stored in redis, and user access is to retrieve data from redis. Of course, it is also possible to put it in MySQL, but these data do not change frequently, and there are many data categories related to tags. Using MySQL requires many tables, so the file management method is currently used.
It stores a PHP array
tags.php
Then the data is stored in redis, and user access is to retrieve data from redis.
Of course, it is also possible to put it in MySQL, but these data do not change frequently, and there are many data categories related to tags. Using MySQL requires many tables, so the file management method is currently used.
The tag data will eventually be implemented. It should be stored in the MySQL table, and then the frequently used attributes will be cached in redis.
As long as the question is associated with the tag_id, why do you need a tag to associate the issue?
Maybe the redis set is used