Свойство | Тип | Описание | |
---|---|---|---|
$cache | Cache Lite instance. | ||
$lifetime | Caceh life time, default is 1 year. |
Метод | Описание | |
---|---|---|
__construct ( string $cacheDir ) | Create a new Translation cache. | |
clean ( string $catalogue, string $culture ) | Clean up the cache for the specified section and locale. | |
clear ( ) | Flush the cache. Deletes all the cache files. | |
get ( string $catalogue, string $culture, $lastmodified ) : mixed | Get the data from the cache. | |
getLifeTime ( ) : integer | Get the cache life time. | |
save ( array $data, string $catalogue, string $culture ) | Save the data to cache for the specified section and locale. | |
setLifeTime ( integer $time ) | Set the cache life time. |
Метод | Описание | |
---|---|---|
getGroup ( string $catalogue, string $culture ) | Get the cache file GROUP based section and locale. | |
getID ( string $catalogue, string $culture ) | Get the cache file ID based section and locale. |
public __construct ( string $cacheDir ) | ||
$cacheDir | string | Directory to store the cache files. |
public getLifeTime ( ) : integer | ||
Результат | integer | Cache life time. |
public setLifeTime ( integer $time ) | ||
$time | integer | Cache life time. |
protected TCache_Lite,Prado\I18N\core $cache | ||
Результат |