当前位置:首页 > CN2资讯 > 正文内容

memcached php

3天前CN2资讯

memcached php What is Memcached 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.





What is Memcached?

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.


​​http://memcached.org/about​​



About Memcached


memcached is a high-performance, distributed memory object caching system, generic in nature, but originally intended for use in speeding up dynamic web applications by alleviating database load.

You can think of it as a short-term memory for your applications.



What it Does



memcached allows you to take memory from parts of your system where you have more than you need and make it accessible to areas where you have less than you need.

memcached also allows you to make better use of your memory. If you consider the diagram to the right, you can see two deployment scenarios:

  • Each node is completely independent (top).
  • Each node can make use of memory from other nodes (bottom).
  • The first scenario illustrates the classic deployment strategy, however you'll find that it's both wasteful in the sense that the total cache size is a fraction of the actual capacity of your web farm, but also in the amount of effort required to keep the cache consistent across all of those nodes.

     

    With memcached, you can see that all of the servers are looking into the same virtual pool of memory. This means that a given item is always stored and always retrieved from the same location in your entire web cluster.

    Also, as the demand for your application grows to the point where you need to have more servers, it generally also grows in terms of the data that must be regularly accessed. A deployment strategy where these two aspects of your system scale together just makes sense.

    The illustration to the right only shows two web servers for simplicity, but the property remains the same as the number increases. If you had fifty web servers, you'd still have a usable cache size of 64MB in the first example, but in the second, you'd have 3.2GB of usable cache.

    Of course, you aren't required to use your web server's memory for cache. Many memcached users have dedicated machines that are built to only be memcached servers.

    Origin

    Memcached was originally developed by Brad Fitzpatrick for ​​LiveJournal​​ in 2003.

     


    xgqfrms


      你可能想看:

      扫描二维码推送至手机访问。

      版权声明:本文由皇冠云发布,如需转载请注明出处。

      本文链接:https://www.idchg.com/info/26192.html

      标签: memcachedphpPHP
      分享给朋友:
      返回列表

      上一篇:php 系列

      下一篇:php常量

      “memcached php” 的相关文章

      如何利用VPS挖矿赚钱:低成本高收益的加密货币挖矿指南

      VPS挖矿的基本概念 VPS挖矿是一种利用虚拟专用服务器(VPS)的计算资源进行加密货币挖矿的方式。VPS通常用于托管网站或运行应用程序,但它的计算能力也可以被用来执行挖矿算法。挖矿本质上是通过解决复杂的数学问题来验证交易并创建新的加密货币区块,作为回报,矿工会获得一定数量的加密货币。VPS挖矿特别...

      永久循环优惠:如何通过长期折扣提升客户忠诚度与购买频率

      定义与特点 永久循环优惠是一种长期有效的营销策略,旨在通过持续的优惠措施吸引和保留客户。这种优惠方式的核心在于“永久”和“循环”,意味着优惠不会在短期内结束,而是会持续存在,甚至可能随着时间推移不断更新或调整。它的特点在于为消费者提供长期的实惠,同时帮助商家建立稳定的客户关系。 从消费者的角度来看,...

      IP地址可以是255吗?详解IP地址的定义、结构与未来发展趋势

      IP地址的定义与作用 IP地址是互联网协议(IP)中用于标识网络上设备的逻辑地址。它就像是互联网世界的“门牌号”,帮助数据包准确地找到目的地。没有IP地址,设备之间就无法相互识别和通信。无论是电脑、手机还是服务器,只要连接到网络,都会分配一个唯一的IP地址。它的存在让互联网的运作变得有序且高效。 I...

      Hetzner VPS:高性能、低延迟的全球服务器解决方案

      公司背景与数据中心位置 Hetzner作为欧洲最大的数据中心运营商之一,一直以提供高性能的VPS和独立服务器而闻名。公司在德国、芬兰和美国设有数据中心,确保用户能够享受到低延迟和高带宽的服务。这些数据中心的地理位置选择非常讲究,不仅覆盖了欧洲的主要市场,还通过美国的数据中心服务全球用户。无论你是欧洲...

      年抛域名的优势与续费注意事项,助您成功管理短期项目

      年抛域名是我在互联网世界中常遇到的一个概念,它们指的是那些注册时间为一年,使用者并不打算长期持有的域名。这类域名的价格往往比较低廉,非常适合一些短期项目或者测试用途。或许你有过这样的经历,想要尝试某个新项目,于是申请了一个年抛域名,一年后若不再需要,便无后顾之忧。这样的运作模式灵活高效,适合现代互联...

      香港节点:全球数据传输的关键连接点

      在讨论香港节点时,最直接的概念就是它们作为互联网的关键连接点。这些节点不仅仅是简单的数据传输站,更是互联网生态系统中不可或缺的一部分。香港节点能够发送、接收或转发信息,确保数据流在全球范围内的高效流动。想象一下,在这个信息高度互联的时代,没有这些节点,我们是多么难以获取实时信息和全球数据。 香港节点...