Page MenuHomeWickedGov Phorge

Cache.php
No OneTemporary

Size
496 B
Referenced Files
None
Subscribers
None

Cache.php

<?php
declare(strict_types=1);
namespace Phan\Library;
/**
* A cache from string keys to object instances
*
* @template T
*/
interface Cache
{
/**
* Retrieve a copy of the value from the cache, or return null
*
* @return ?T
*/
public function getIfExists(string $key);
/**
* Save a copy of $value to the cache.
*
* @param T $value
* @return bool true if successfully saved
*/
public function save(string $key, $value): bool;
}

File Metadata

Mime Type
text/x-php
Expires
Sat, May 16, 19:22 (4 h, 45 m)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
df/32/95b25aad3ba8f26a1bce20a60c00
Default Alt Text
Cache.php (496 B)

Event Timeline