clean/repository

View on GitHub
src/CacheAdapterInterface.php

Summary

Maintainability
A
0 mins
Test Coverage
F
0%
<?php namespace Clean\Repository;

interface CacheAdapterInterface
{
    /**
     * Caches specified callback result for specified time.
     *
     * @param string $key
     * @param callable $callable
     * @param integer $ttl
     *
     * @return mixed
     */
    public function cache($key, callable $callable, $ttl);
}