HEX
Server: Apache
System: Linux sxb1plzcpnl440011.prod.sxb1.secureserver.net 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
User: xfp2mtarcm67 (7705020)
PHP: 7.3.33
Disabled: NONE
Upload Files
File: //home/xfp2mtarcm67/www/wp-content/plugins/pop-up-pop-up/analyst/src/Contracts/CacheContract.php
<?php

namespace Analyst\Contracts;

/**
 * Interface CacheContract
 *
 * @since 1.1.5
 */
interface CacheContract
{
	/**
	 * Save value with given key
	 *
	 * @param string $key
	 * @param string $value
	 *
	 * @return static
	 */
	public function put($key, $value);

	/**
	 * Get value by given key
	 *
	 * @param $key
	 *
	 * @param null $default
	 * @return string
	 */
	public function get($key, $default = null);

	/**
	 * @param $key
	 *
	 * @return static
	 */
	public function delete($key);

	/**
	 * Should get value and remove it from cache
	 *
	 * @param $key
	 * @param null $default
	 * @return mixed
	 */
	public function pop($key, $default = null);
}