コンストラクタは、$ keyの値がキャッシュと同様に、上書きするデフォルトの$ cacheFolderを許可を与えます。
__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:キャッシュされたアイテムが格納される場所
この関数は、渡されたオブジェクトをキャッシュします。 これは、新しいキャッシュフォルダを作成して処理します。
Cache ( object $data ) ブール キャッシュ ( オブジェクト $データ )
- $data : this is the object to serialize オブジェクト $データ :これは、シリアル化するオブジェクトです。
キャッシュが存在する場合、この関数は示しています
CacheExists () ブール CacheExists()
この関数は削除されキャッシュされたオブジェクト
DeleteCache () ブール DeleteCache()
この関数は、キャッシュされたオブジェクトを読み取ります
ReadCache () オブジェクト ReadCacheは ()