I set up a website to cache some of the data with memcached.
I'm thinking right now. Each article is cached by ID, and the number of views per article is cached by the article Id+views, which is especially so.
But I do not understand the characteristics of memcached, I would like to do something wrong? There are about 10,000 or so data.
Memory 4gb.
Reply content:
I set up a website to cache some of the data with memcached.
I'm thinking right now. Each article is cached by ID, and the number of views per article is cached by the article Id+views, which is especially so.
But I do not understand the characteristics of memcached, I would like to do something wrong? There are about 10,000 or so data.
Memory 4gb.
There is no limit on the number, memcached is a hash storage algorithm, in principle there is no limit, but the large number will affect efficiency. And how much data you can store depends on the size of your data every day.
Memcached is a cache, especially is not suitable for like you This is almost the approximate length of the situation, because its chunk characteristics, although the overall is full, but there is a decline in hit ratio, it is recommended to use Redis, must use memcached words, it is recommended to hit the failure to read the database this way