Home > Download >  Library download > caching library

  • The php file cache class extracted from the CI community's stblog and CI's file_helper class, a simple file-based key->value cache class. This class can be used to cache some basic information, such as some infrequent changes in the header, footer, and sidebar of the blog, and the content taken out from the database. Before fetching the data, first determine whether the content in the file cache has expired. , If it has not expired, take it out. If it has expired, connect to the database to query, rewrite the results into the file cache, and update the expiration time.

    caching library19852017-03-22
  • IntroductionA common php file page cache class, The cache class is a function that is commonly used in our development applications, This method If it does not conflict with the class attribute, you can use any cache name, clean up the expired cache, clear all cache files, the third parameter is the expiration time.

    caching library13502017-03-22
  • Cache classification database cache, file cache and memory cache in php. The following is a detailed introduction to the PHP file cache class implementation code for friends. Friends who need to know can refer to it.

    caching library13262017-03-22
  • Cache is widely used in actual use, which can reduce access to the server database and improve running speed. At present, many CMS content management systems frequently use caching mechanisms to improve the efficiency of system operation. Here is a well-written cache class. You can refer to the cache mechanism and writing method.

    caching library13962017-03-18
  • Aphp implements the file cache class. The idea is very simple: is to write the cache time and data to the file. Set the file saving path,Set the file suffix name,The directory does not exist and create the directory,Set the fixed-length cache time, save it to the cache file, Get the cache data. ##

    caching library11332017-03-18
  • Mainly introduces the PHP file cache class implementation code, cache classification database cache, file cache and memory cache in PHP, Check whether the cache file is within the set update time, Cache files or output static files, Clear cache files, Generate cache file names based on the current dynamic files, Cache file creation time.

    caching library12672017-03-18
  • Shared an extremely simple PHP caching code. The application of caching is particularly important for the development of PHP projects Instructions for use: 1. Instantiation $cache = new Cache(); 2. Set cache time and cache directory $cache = new Cache(60, '/any_other_path/'); The first parameter is the cache seconds, and the second parameter is the cache path, which can be configured as needed. By default, the cache time is 3600 seconds, and the cache directory is cache/ 3. Read cache $value = $cache->get('data_key'); 4. Write cache $value = $cache->put('data_key', 'data_value');

    caching library13212017-03-18
  • A PHP cache class, please see the code for setting details. This version is encoded in utf-8. If the website uses other encodings, please convert it yourself. Open it with Notepad on Windows systems. Save as, select the corresponding encoding (generally ANSI), please use the corresponding editing software or iconv command line under Linux. The fundamental difference between dynamic caching and static caching is that it is automatic. The process of user accessing the page is the process of generating cache, browsing cache, and updating cache, without manual intervention.

    caching library15672017-03-18
  • Generally speaking, the purpose of caching is to put data in one place to make access faster. There is no doubt that memory is the fastest, but can hundreds of M of data be stored in it? This is unrealistic. , Of course, sometimes it is temporarily placed in the server cache. For example, if the ob_start() cache page is turned on, the page content will be cached in the memory before sending the file header. Until the page output is automatically cleared or waiting for the return of ob_get_contents, [or be The clearing of ob_end_clean display can be well used in the generation of static pages and can be well reflected in templates

    caching library13542017-03-18
  • fast-cache is a fast and efficient caching php library that supports multiple drivers Support file driver Support memechache

    caching library13922017-03-12
  • Describes a concise and practical PHP cache class, which can be used to check whether cache files are within the set update time, clear cache files, generate cache file names based on current dynamic files, continuously create directories, and output static cache files. For the development of CMS systems using PHP, it is inseparable from the processing of cache. Proper use of cache can effectively improve program execution efficiency.

    caching library15312017-03-10
  • CacheTool is a class library for clearing APC/opcode cache. Interested friends can download it and use it in their own projects.

    caching library12402017-02-27