Last active
August 13, 2022 17:59
-
-
Save mikemix/602134d05d97baaa347e9175418555c6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
declare(strict_types=1); | |
namespace App\Cache; | |
/** | |
* @template TObject | |
*/ | |
interface LRUCacheInterface | |
{ | |
/** | |
* @param TObject $item | |
*/ | |
public function add(string $key, $item): void; | |
/** | |
* @return TObject|null | |
*/ | |
public function get(string $key); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment