Файл: gapps/vendor/prettus/l5-repository/src/Prettus/Repository/Contracts/CacheableInterface.php
Строк: 33
<?php
namespace PrettusRepositoryContracts;
use IlluminateContractsCacheRepository as CacheRepository;
/**
* Interface CacheableInterface
* @package PrettusRepositoryContracts
*/
interface CacheableInterface
{
/**
* Set Cache Repository
*
* @param CacheRepository $repository
*
* @return $this
*/
public function setCacheRepository(CacheRepository $repository);
/**
* Return instance of Cache Repository
*
* @return CacheRepository
*/
public function getCacheRepository();
/**
* Get Cache key for the method
*
* @param $method
* @param $args
*
* @return string
*/
public function getCacheKey($method, $args = null);
/**
* Get cache minutes
*
* @return int
*/
public function getCacheMinutes();
/**
* Skip Cache
*
* @param bool $status
*
* @return $this
*/
public function skipCache($status = true);
}