Initial commit xmarticaims
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
|
||||
namespace WP_Rocket\Engine\Common\Cache;
|
||||
|
||||
interface CacheInterface extends \WP_Rocket\Dependencies\Psr\SimpleCache\CacheInterface {
|
||||
|
||||
/**
|
||||
* Generate the real URL.
|
||||
*
|
||||
* @param string $url original URL.
|
||||
* @return string
|
||||
*/
|
||||
public function generate_url( string $url ): string;
|
||||
|
||||
/**
|
||||
* Is the root path available.
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function is_accessible(): bool;
|
||||
|
||||
/**
|
||||
* Get root path from the cache.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function get_root_path(): string;
|
||||
|
||||
/**
|
||||
* Generate a path from the URL.
|
||||
*
|
||||
* @param string $url URL to change to a path.
|
||||
* @return string
|
||||
*/
|
||||
public function generate_path( string $url ): string;
|
||||
}
|
||||
Reference in New Issue
Block a user