English 中文(简体)
选择混杂数据的密钥
原标题:choosing keys for the memcached data
  • 时间:2012-05-27 14:43:38
  •  标签:
  • memcached

我需要将不同种类的数据 储存在混杂的数据中

  • sessions
  • html for pages
  • result for db queries
  • user information
  • site themes data
  • some other types of objects

我需要知道选择钥匙的正确方式

具体地说,对于会议,我是否应该将会议编号设定为关键?如果今后我延长会议编号的长度,使其超过键的250 限制,怎么办?

问题回答

Memcached 不允许您做基于命名空间的操作, 因此除非您有客户端逻辑, 键的命名不会产生多大影响 。

As for the different types of data being set in the same memcached. Memcached divides the memory into chunks of specific sizes according to the data being set. Therefore if the data size distribution is large then the memcached wouldn t optimally utilize the space.

为深入了解分配制度,请参考下文中的链接。

http://www.adayinthelifeof.nl/2011/02/06/emcache- internorals/" rel="nofollow" >http://www.adayinthelifef.nl/2011/02/06/emcache- Internets/





相关问题
Memcached Writes Extremely Slow

I m running memcached on ec2 instances and in some cases am seeing extremely slow writes (10s) for small amounts of data. I m using memcache-client from rails on the client side. Has anyone seen ...

can t install memcache php module

i m trying to install memcache module from http://pecl.php.net/package/memcache. Im using xampp in ubuntu (lampp) with php 5.3. After download the extension, I run phpize, make and make install, then ...

sphinx is returning stale results

Environment: Memcached, Rails 2.2.2 + cache_money, Sphinx + thinking sphinx The following yields stale results: - add a record; mysql contains the correct data - the record is probably cached in ...

Pylons and Memcached

Anyone happen to use this combination in their web application? I m having a bit of trouble finding some sort of tutorial or guideline for configuring this. Also seeing as how I started using Pylons ...

Memcached crashing under moderate load

When running memcached, after a few minutes of use it starts throwing the following errors and memcache stops responding. mcm_server_connect_next_avail():2328 I have searched the Google, and it ...

enyim and memcached : NOT_STORED errors

We are using memcached 1.2.4 via enyim and are finding it difficult to get some objects to cache. If I watch the memcache console it just says NOT_STORED . I think we need to use [serializable] but ...

PHP - Memcache - HTML Caching

I would like to create a caching system that will bypass some mechanisms in order to improve the performance. I have some examples: 1-) I have a dynamic PHP page that is updated every hour. The page ...

热门标签