mirror of
https://gh.wpcy.net/https://github.com/fairpm/aspirecloud.git
synced 2026-06-20 02:22:28 +08:00
15 lines
292 B
PHP
15 lines
292 B
PHP
<?php
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Contracts\Metrics;
|
|
|
|
use Illuminate\Contracts\Cache\Repository;
|
|
|
|
interface Metrics
|
|
{
|
|
public function __construct(Repository $cache);
|
|
|
|
public function increment(string $key, int $by = 1): void;
|
|
|
|
public function get(string $key): int;
|
|
}
|