PHP Class Xpressengine\Translation\TransCache

Author: XE Developers ([email protected])
Show file Open project: xpressengine/xpressengine Class Usage Examples

Public Methods

Method Description
__construct ( Illuminate\Cache\Repository $cache, boolean | false $debug = false )
flush ( ) : void 캐시를 비웁니다
get ( string $namespace, string $item, string $locale ) : string 캐시된 라인을 얻습니다
set ( string $namespace, string $item, string $locale, string $value ) : void 라인을 캐싱합니다
setCacheKey ( string $transCacheKey ) : void 그룹단위 캐시의 키를 지정합니다

Private Methods

Method Description
load ( ) : void 캐시를 로드합니다

Method Details

__construct() public method

public __construct ( Illuminate\Cache\Repository $cache, boolean | false $debug = false )
$cache Illuminate\Cache\Repository 라라벨 캐시
$debug boolean | false 디버그 모드 여부

flush() public method

캐시를 비웁니다
public flush ( ) : void
return void

get() public method

캐시된 라인을 얻습니다
public get ( string $namespace, string $item, string $locale ) : string
$namespace string 네임스페이스
$item string 아이템
$locale string 로케일
return string

set() public method

라인을 캐싱합니다
public set ( string $namespace, string $item, string $locale, string $value ) : void
$namespace string 네임스페이스
$item string 아이템
$locale string 로케일
$value string 번역문
return void

setCacheKey() public method

디버그 모드인 경우 캐시에 사용된 캐시 키 목록을 저장합니다
public setCacheKey ( string $transCacheKey ) : void
$transCacheKey string 캐시용 키
return void