•  PHP实现一致性hash

    PHP实现一致性hash

    随着memcache、Redis以及其它一些内存K/V数据库的流行,一致性哈希也越来越被开发者所了解。因为这些内存K/V数据库大多不提供分布式支持(本文以redis为例),所以如果要提供多台redis server来提供服务的话,就需要解决如何将数据分散到redis server,并且在增减redis server时如何最大化的不令数据重新分布,这将是本... 全文》

    Php 7年前 | touch
  • PHP实现各种经典算法

    <?  //--------------------  // 基本数据结构算法 //--------------------  //二分查找(数组里查找某个元素)  function bin_sch($array,  $lo... 全文》

    Php 7年前 | touch
  • PHP 安装phalcon 扩展

    PHP安装phalcon扩展PHP版本:PHP 7.0.21phalcon版本:phalcon 3.2我喜欢phalcon源码编译先确保phalcon3.2的编译环境 PHP 5.5.x/5.6.x/7.0.x/7.1.x development resources (PHP 5.3 and 5.4 are no longer supported)... 全文》

    Php 7年前 | touch
  • PHP 7 cassandra扩展安装

    PHP 7 cassandra扩展安装

    PHP 7.0.21 安装 cassandra扩展安装,写本博文的时候cassandra的PHP扩展最高版本还不支持php7.1.*以后版本,所以确保PHP当前版本不高于php7.0.*首先安装依赖环境yum groupinstall "Development Libraries" yum&nbs... 全文》

    Php 7年前 | touch