This commit is contained in:
Kevin Adametz 2024-08-05 12:05:24 +02:00
parent 04d677d37a
commit bfa3bb1df4
1191 changed files with 637397 additions and 10619 deletions

View file

@ -0,0 +1,31 @@
<?php
namespace App\Services\IPinfo\cache;
/**
* Interface for caches used to store IP data between requests.
*/
interface CacheInterface
{
/**
* Tests if the specified IP address is cached.
* @param string $ip_address IP address to lookup.
* @return boolean Is the IP address data in the cache.
*/
public function has(string $ip_address);
/**
* Set the IP address key to the specified value.
* @param string $ip_address IP address to cache data for.
* @param mixed $value Data for specified IP address.
*/
public function set(string $ip_address, $value);
/**
* Get data for the specified IP address.
* @param string $ip_address IP address to lookup in cache.
* @return mixed IP address data.
*/
public function get(string $ip_address);
}