v7.0.0-beta.2 release
This commit is contained in:
1 parent
6595fd0eb5
commit
fa8eba7a0d
1165 files changed
+107118
-762127
No files matched your search
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
namespace App\Extension\Cache;
|
||||
|
||||
/**
|
||||
* 코어 캐시 드라이버
|
||||
*
|
||||
* 코어 서비스(LayoutService, SeoCacheManager, SettingsService 등)에서 사용하는
|
||||
* 캐시를 관리합니다. 접두사 패턴: g7:core:{key}
|
||||
*
|
||||
* @since engine-v1.18.0
|
||||
*/
|
||||
class CoreCacheDriver extends AbstractCacheDriver
|
||||
{
|
||||
/**
|
||||
* CoreCacheDriver 생성자
|
||||
*
|
||||
* @param string $store 캐시 스토어 이름 (빈 문자열이면 기본 스토어)
|
||||
*/
|
||||
public function __construct(string $store = '')
|
||||
{
|
||||
$this->store = $store ?: config('cache.default');
|
||||
}
|
||||
|
||||
/**
|
||||
* 코어 캐시 접두사를 반환합니다.
|
||||
*
|
||||
* @return string 접두사
|
||||
*/
|
||||
protected function getPrefix(): string
|
||||
{
|
||||
return 'g7:core';
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user