update 20.10.2025
This commit is contained in:
parent
8c11130b5d
commit
a939cd51ef
616 changed files with 84821 additions and 4121 deletions
31
dev/app-bak/Services/IPinfo/cache/CacheInterface.php
vendored
Normal file
31
dev/app-bak/Services/IPinfo/cache/CacheInterface.php
vendored
Normal 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);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue