gpt4 book ai didi

memcached - 为什么是内存缓存?

转载 作者:行者123 更新时间:2023-12-04 14:34:52 26 4
gpt4 key购买 nike

我试图了解使用 memcached 之类的解决方案需要什么。这似乎是一个愚蠢的问题 - 但如果我只需要缓存对象,它会给表带来什么 - 一个简单的哈希图不会吗?

最佳答案

引自 memcache web site , 内存缓存是…

Free & open source, high-performance, distributed memory object caching system, generic in nature, but intended for use in speeding up dynamic web applications by alleviating database load.

Memcached is an in-memory key-value store for small chunks of arbitrary data (strings, objects) from results of database calls, API calls, or page rendering. Memcached is simple yet powerful. Its simple design promotes quick deployment, ease of development, and solves many problems facing large data caches. Its API is available for most popular languages.

At heart it is a simple Key/Value store



这里的一个关键词是 分布式 .一般来说,再次引用memcache站点,

Memcached servers are generally unaware of each other. There is no crosstalk, no syncronization, no broadcasting. The lack of interconnections means adding more servers will usually add more capacity as you expect. There might be exceptions to this rule, but they are exceptions and carefully regarded.



我强烈建议阅读 detailed description of memcache .

关于memcached - 为什么是内存缓存?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4909147/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com