I regularly use your site to answer my PHP problems! 我經常使用您的網站,回答我的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秒