feat: implement repository architecture with smart caching
- Add base repository interfaces and abstract classes - Implement separated read/write repositories for Domain and Username models - Add intelligent query caching with automatic invalidation - Include cache management service and CLI commands - Add comprehensive configuration for cache TTL and monitoring - Enhance performance through optimized data access patterns
This commit is contained in:
16
app/Repositories/Contracts/RepositoryInterface.php
Normal file
16
app/Repositories/Contracts/RepositoryInterface.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
namespace App\Repositories\Contracts;
|
||||
|
||||
interface RepositoryInterface extends ReadRepositoryInterface, WriteRepositoryInterface
|
||||
{
|
||||
public function getModel(): string;
|
||||
|
||||
public function startTransaction(): void;
|
||||
|
||||
public function commitTransaction(): void;
|
||||
|
||||
public function rollbackTransaction(): void;
|
||||
|
||||
public function transaction(callable $callback): mixed;
|
||||
}
|
||||
Reference in New Issue
Block a user