Welcome to the Cookbook

loading...

8.7.1 Cache::read()

The original text for this section has changed since it was translated. Please help resolve this difference. You can:

More information about translations

Cache::read($key, $config = null)

Cache::read() は、 $config から、 $key に関連付けられて格納されているキャッシュの値を読み込みます。$config が null であった場合、デフォルトのコンフィグが利用されます。Cache::read() は、有効なキャッシュであった場合、キャッシュの値を返し、キャッシュが有効期限切れであったり存在しなかった場合は、false を返します。