设为首页  
联系我们  
加入收藏  
网页制作 冲浪宝典 图形图像 操作系统 软件教学 编程开发 认证考试 安全技术 站长专区 文学驿站 娱乐天地 游戏天地 办公软件
文章搜索
您的位置: 首页 >> 文章首页 >> 编程开发 >> 网络编程 >> PHP技巧 >> PHP技巧:使用APC缓存优化PHP程序
精品推荐
PHP技巧点击TOP10
·PHP网页编码问题:任意字符集正常显示网页的方法
·用PHP连接Oracle数据库
·一个SQL管理员的web接口
·PHP的十个高级技巧
·详细阐述PHP环境下如何将gbk编码转成utf8格式
·MVC模式的PHP实现
·新手学习用PHP程序对网页表单的处理
·使用PHP的Socket写的POP3类
·一次编写,随处运行
·php数据库连接
网络编程点击TOP10
·ASP.NET 程序中常用的三十三种代码
·CHK文件恢复工具
·.NET 初 级 读 本
·c#操作word表格
·我的.NET书架 (入门篇)
·『原创』C#中TreeView类操作全攻略:建立树,新增节点,删除节点,修改节点,拖动节点,与Oracle数据库交互操作(一)
·用C#实现木马程序
·从零开始学ASP.NET(基础篇)
·十天学会ASP.net之第一天
·官方水晶报表 .NET 应用程序实例下载 (C#、Visual C++.NET)
精选专题

PHP技巧:使用APC缓存优化PHP程序

作者: 来源:http://www.xgdown.com/ 时间:2007-7-10 8:33:13

PHP技巧:使用APC缓存优化PHP程序(3) apc_define_constants  - Defines a set of constants for later retrieval and mass-definition
apc_delete            - Removes a stored variable from the cache
apc_fetch             - Fetch a stored variable from the cache
apc_load_constants    - Loads a set of constants from the cache
apc_sma_info          - Retrieves APC's Shared Memory Allocation information
apc_store             - Cache a variable in the data store

apc的用法比较简单,只有几个函数,列举如下。

apc_cache_info () 返回缓存信息
apc_clear_cache() 清除apc缓存内容。
默认(无参数)时,只清除系统缓存,要清除用户缓存,需用‚user‘参数。
apc_define_constants ( string key, array constants [, bool case_sensitive] ) 将数组constants以常量加入缓存。
apc_load_constants (string Key)。
取出常量缓存。
apc_store ( string key, mixed var [, int ttl] )。
在缓存中保存数据。
apc_fetch ( string key )。
获得apc_store保存的缓存内容
apc_delete ( string key )。
删除apc_store保存的内容。

apc的管理:

到pecl.php.net下载apc源码包有个apc.php,copy到你的web server可以访问到的地方,浏览即可访问。

管理界面功能有:
   1. Refresh Data
   2. View Host Stats
   3. System Cache Entries
   4. User Cache Entries
   5. Version Check

共3页 9 7 [1] [2] [38 :>

PHP技巧:使用APC缓存优化PHP程序 相关文章:
PHP技巧:使用APC缓存优化PHP程序 相关软件:
特别声明:本站除部分特别声明禁止转载的专稿外的其他文章可以自由转载,但请务必注明出处和原始作者。文章版权归文章原始作者所有。对于被本站转载文章的个人和网站,我们表示深深的谢意。如果本站转载的文章有版权问题请联系编辑人员,我们尽快予以更正。
转载请注明来源:http://www.xgdown.com