Home > Download >  Library download > caching library

  • Zend Cache: A practical caching PHP class library. Interested friends can download it and use it in their own projects.

    caching library14502017-02-27
  • Doctrine Cache is a PHP cache library. Interested friends can download it and use it in their own projects.

    caching library22592017-02-27
  • The commonly used methods of data file caching include php file caching and using memcache to cache data. Below I have summarized memcache caching data and data file caching respectively. Friends in need can refer to it. 1. For general variables, change the variable into the format of PHP language and write it to the file. When using, just include the file, which is equivalent to loading the cache. 2. For array-type variables, convert the array into a string that defines the array in the PHP language, and write it to the file. It only takes the time to include it, which is equivalent to loading the cache. 3. Control the cache time by obtaining the creation time of the cache file and comparing it with the current time. If the update time is not reached, the cache is read directly. If the update time is reached, the database is queried.

    caching library16382017-02-27
  • PHP cache Memcache Queue class library Let’s take a look at the usage. The code is as follows: MQ::setupMq('127.0.0.1','11211');//Connection MQ::add($key, $value);//Add data to the queue MQ::add($key, $value);//Add data to the queue MQ::add($key, $value);//Add data to the queue MQ::add($key, $value);//Add data to the queue MQ::add($key, $value);//Add data to the queue MQ::add($key, $value);//Add data to the queue MQ:get($key, 10);//Retrieve a certain amount of data

    caching library13692017-02-27