v7.0.0-beta.2 release

This commit is contained in:
HeuJung
2026-04-20 20:37:49 +09:00
parent 6595fd0eb5
commit fa8eba7a0d
1165 changed files with 107118 additions and 762127 deletions
+41
View File
@@ -0,0 +1,41 @@
<?php
namespace App\Extension\Cache;
/**
* 모듈 캐시 드라이버
*
* 각 모듈에서 사용하는 캐시를 관리합니다.
* 접두사 패턴: g7:module.{identifier}:{key}
*
* @since engine-v1.18.0
*/
class ModuleCacheDriver extends AbstractCacheDriver
{
/**
* 모듈 식별자
*/
private string $identifier;
/**
* ModuleCacheDriver 생성자
*
* @param string $identifier 모듈 식별자 (예: sirsoft-ecommerce)
* @param string $store 캐시 스토어 이름 (빈 문자열이면 기본 스토어)
*/
public function __construct(string $identifier, string $store = '')
{
$this->identifier = $identifier;
$this->store = $store ?: config('cache.default');
}
/**
* 모듈 캐시 접두사를 반환합니다.
*
* @return string 접두사
*/
protected function getPrefix(): string
{
return 'g7:module.' . $this->identifier;
}
}