Skip to content

Instantly share code, notes, and snippets.

@mikemix
Last active August 13, 2022 17:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mikemix/602134d05d97baaa347e9175418555c6 to your computer and use it in GitHub Desktop.
Save mikemix/602134d05d97baaa347e9175418555c6 to your computer and use it in GitHub Desktop.
<?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