要复制或下载本站资源,请注意以下几点:
1、不要直接复制文章中的源码文件,这样会导致有乱码,点击“下载文章中PHP源代码”保存文件
2、本站内容可自由转载,请注明文章出处为:PHP开源代码网(www.osphp.com.cn)
分页: 1/1 第一页 1 最后页 [ 显示模式: 摘要 | 列表 ]
Sep 17
eAccelerator和memcached,是目前较为主流的两个可使用在PHP之中的缓存加速工具.

  eAccelerator专门为PHP开发,而memcached不仅仅用在PHP之中,其他所有的语言都可以使用.

  eAccelerator的主要功能:

  1. 缓存PHP文件的执行代码:在被缓存的代码再次被调用时,将直接从内存读取,从而在很大程度了PHP运行的速度.

  2. 提供了共享内存操作函数:用户可以将自己的常见非资源对像,保存到内存之中,并可以随时读取出来.

  memcached的主要功能:

  提供共享内存操作函数,可以保存和读取数据

  两者的共同点:

  共同点:都提供了共享内存操作函数,可以用来保存和读取自己的数据
Nov 10

Content cache class 不指定

shuguang , 16:32 , Cache , 评论(0) , 引用(0) , 阅读(12652) , Via 本站原创
程序名称:Content cache class
开发者/组织名称:Szilágyi Gábor
运行环境:php+mysql,php+文本
官方网站:http://www.sysmarks.com/
演示地址:
文章来源:http://www.OSphp.com.cn
下载地址:
程序介绍:
This class can be used to cache content in files.

It checks whether a given cache file exists. If it exists and is not expired, the class returns the cache file contents. If it has expired, the class removes the cache file.

If the cache file does not exist, the class can create a new cache file with from fresh content.

The path of the directory where the cache files are stored is configurable.

Tags: , ,
Nov 10
程序名称:Cache output and objects
开发者/组织名称:Dragan Bošnjak
运行环境:php+mysql,php+文本
下载地址:
请下载附件中的源码,不要直接复制 (已下载 1893 次)

文章来源:http://www.OSphp.com.cn
程序介绍:
This class can be used to cache the output of PHP scripts in files.

It checks if a given cache file exists and is updated. If it is updated, it outputs the cached content. Otherwise it starts capturing the output of the current script.

When the script is done outputting the content to be cached, it should call the class again to check the cache. Then the class updates the captured output. //开源代码OSPhP.COm.CN

The class may cache nested scripts that output several blocks of content stored in different cached files and with eventually different expiration times.

This package also comes with a plug-in to cache output of pages generated with Smarty templates.

The class may also cache the serialized values of objects and other types of variables.
Tags: , , ,
Nov 10

Cached XSL 不指定

shuguang , 16:23 , Cache , 评论(0) , 引用(0) , 阅读(10349) , Via 本站原创
程序名称:Cached XSL
开发者/组织名称:Gregory
运行环境:php+mysql,php+文本
官方网站:http://gregory.pp.ru/
下载地址:
请下载附件中的源码,不要直接复制 (已下载 1300 次)

文章来源:http://www.OSphp.com.cn
程序介绍:
This class is around XSLT wrapper Sablotron XSL processor extension that added caching support to reduce the time necessary to process a XML file after the first time it is processed.

The caching support is based on the PEAR::Cache class.
Tags: , , ,
Nov 10
程序名称:CacheManager
开发者/组织名称:Alexander Stepanenko
运行环境:php+mysql,php+文本
官方网站:http://www.blog.wolfden.com.ua/
下载地址:
请下载附件中的源码,不要直接复制 (已下载 1485 次)

文章来源:http://www.OSphp.com.cn
程序介绍:
This class can be used to cache arbitrary data in files.

It can check if the cache with a certain key already exists. If it exists and it is not expired, it can return the cached data. Otherwise it can store newly generated data in a cache file with the given key.

The class can be configured to set the cache life time and the root directory of where all the cache files will be stored. //OSPHP.COm.CN
Tags: , , , , ,
分页: 1/1 第一页 1 最后页 [ 显示模式: 摘要 | 列表 ]