I had no idea at all about PHP or programming until I started reading your website! 我不知道,在所有关于PHP编程,直到我开始读你的网站!”
斯科特

RocksCache类

描述

这个类使磁盘上缓存容易基于一个给出的RocksCache,关键的对象。

  • Dominic Skinner 作者:多米尼克·斯金纳
  • 0.2.1 版本:0.2.1

)位于/ RocksCache.php(9号线)

方法摘要
__construct ( string $key , [ string $cacheFolder = "_cache" ]) RocksCache __construct字符串 $键 ,[ 字符串 $ cacheFolder =“_cache”])
Cache ( object $data ) 布尔 缓存对象 数据
CacheExists () 布尔 CacheExists ()
DeleteCache () :布尔 DeleteCache ()
ReadCache () :对象 ReadCache ()
方法
(line 20 ) 构造构造_(20行)

美元的关键价值,以及允许重写默认的$ cacheFolder的构造使高速缓存。

  • public 访问:公众
__construct ( string $key , [ string $cacheFolder = "_cache" ]) RocksCache __构造字符串 $键 ,[ 字符串 $ cacheFolder =“_cache”])
  • $key : the key that will be used to write the cache on disk 字符串 $键 :将用于写入磁盘高速缓存的关键
  • $cacheFolder : the location the cached item will be stored 字符串 $ cacheFolder:缓存项的位置将被保存
(line 32 ) 缓存 (32行)

此功能缓存一个对象传递给它。 它可以处理创建一个新的缓存文件夹。

  • true if sucessful 返回:如果sucessful
  • public 访问:公众
Cache ( object $data ) 布尔 缓存对象 数据
  • $data : this is the object to serialize 反对 美元的数据 :这是要序列化的对象
(line 65 ) CacheExists(65行)

此功能表示如果存在缓存

  • true if the cache exists 返回:真正的缓存是否存在
  • public 访问:公众
CacheExists ()布尔 CacheExists)
(line 56 ) DeleteCache(56行)

此功能删除缓存对象

  • true if sucessful 返回:如果sucessful
  • public 访问:公众
DeleteCache () :布尔 DeleteCache()
(line 46 ) ReadCache(46行)

这个函数读取缓存的对象

  • public 访问:公众
ReadCache () :对象 ReadCache()

最新评论:1。 第1页1。 平均评分:
1:12am on Monday, December 5th, 2011 2011年12月5日,星期一,上午 jodecy 1:12
我不能相信我已经多年没有kowning的。

安全形象

书面由多米尼克·斯金纳
最后更新:2011年10月25日十六点00分38秒