Home > Download >  Library download > caching library

  • Share aphp class for caching multi-level directories The parameters are explained in detail as follows: First parameter: Cache secondary directory Second parameter: Cache time Default 1800 The third parameter: Whether a third-level directory is required 0: Not required 1 Required Default 0 Fourth parameter: Cache suffix Default .html Calling method: $cache = new php_cache('index'); $cache = new php_cache('index',1800); $cache = new php_cache('index',1800,1); $cache = new php_cache('index',1800,1,'.html');

    caching library49212017-05-03
  • Share a simple cache class implemented in PHP, destructor, check whether the cache directory is valid, default assignment, check Whether the cache is valid, write the cache, load the cache, clear the cache. ##

    caching library45882017-04-18
  • I would like to recommend a good php file cache class file to everyone. From all aspects, this cache class is very reasonable and suitable for large websites. The cache time is greater than 0, and the modification of the cache file is detected. Time, which is the cache file name within the cache time. If it exceeds the cache time, it is False. Compare the time difference between the creation/modification date of the file and the current date

    caching library51782017-03-29
  • How to use the Memcache operation class in php, Delete the cached key, Refresh the cache but do not release the memory space, Enable automatic compression of large values, is used to obtain the online/offline status of a server, cache statistics of all servers in the server pool, etc. .

    caching library50462017-03-24
  • Introducing a php redis cache class, cache file path, including file name, destructor, check whether the cache directory is valid, default assignment, check Whether the cache is valid, After loading the cache, terminate the execution of the original page program, if the cache is invalid, run the original page program to generate a cache, Turn on the browser cache to obtain the page content at the end of the page .

    caching library77282017-03-24
  • If the number of visits is large, it will put a huge burden on the database, so it is very necessary to do a good job of PHP data cache (caching) for content that changes infrequently. 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; 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 as long as include, which is equivalent to loading the cache.

    caching library58952017-03-24
  • Introducing a php package Memcache queue cache class, memcache client connection, Whether the queue can be updated, Cache queue life cycle time,When the client disconnects, execution is allowed to continue,Cancel the upper limit of script execution delay,When an element is taken out, the value at the head of the queue is changed. When an element is added, the value at the end of the queue is changed. etc.

    caching library47002017-03-24
  • A variety of caching technologies may be used in the project, such as memcacheFile caching, etc. If these caching mechanisms can be unified into an interface and open to the outside world, users can call these caching classes at will without caring about the internal implementation of the cache. To implement this approach, a cache proxy class is needed to completely proxy cache operations. Users only need to use this proxy class to perform various cache operations.

    caching library46042017-03-24
  • Share an article about the usage of Queue for caching Memcache in PHP. Memcache is a caching technology that can improve the performance of the program and reduce the pressure on the server. is currently used Many websites use it to improve the access speed of the website, especially for some large websites that require frequent access to the database. The effect of improving the access speed is very significant .

    caching library15082017-03-24
  • Aphp memory cache Memcached class code, Construction method, used to add servers and create memcahced objects, Get memcached objects ,Check whether mem is connected successfully,Add data to memcache,Get the data saved in memcahce, Delete all caches related to the same table. ##

    caching library24082017-03-22
  • What I share is the code about the file caching class taken from ThinkPHP. It is very practical and very efficient. I recommend it to everyone here. For reference by friends in need, Set file cache, Get files, Delete files.

    caching library18872017-03-22
  • A very useful php cache file class, get the instance of this class,get the cache information,Set a cache, Clear a cache, Determine whether the cache exists, Get the cache information path through the cache id, Get cache information storage file name by id##, Write data to file.

    caching library14332017-03-22