14 lines
310 B
PHP
14 lines
310 B
PHP
<?php
|
|||
|
|
declare( strict_types=1 );
|
||
|
|
|
||
|
|
namespace StreamGoals\PayPal;
|
||
|
|
|
||
|
|
/** Tiny key/value TTL cache seam (transients in production). */
|
||
|
|
interface Cache {
|
||
|
|
|
||
|
|
public function get( string $key ): mixed;
|
||
|
|
|
||
|
|
public function set( string $key, mixed $value, int $ttl ): void;
|
||
|
|
|
||
|
|
public function delete( string $key ): void;
|
||
|
|
}
|