- 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
17 lines
384 B
PHP
17 lines
384 B
PHP
<?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;
|
|
}
|