orkhanahmadov/eloquent-repository

View on GitHub
src/Repository/Contracts/Cacheable.php

Summary

Maintainability
A
0 mins
Test Coverage
F
0%
<?php

namespace Orkhanahmadov\EloquentRepository\Repository\Contracts;

interface Cacheable
{
    /**
     * Defines cache key.
     *
     * @return string
     */
    public function cacheKey(): string;

    /**
     * Removes cache for model.
     *
     * @param $model
     */
    public function invalidateCache($model): void;
}