HEX
Server: LiteSpeed
System: Linux premium212.web-hosting.com 4.18.0-553.124.4.lve.el8.x86_64 #1 SMP Fri May 15 13:02:13 UTC 2026 x86_64
User: vitanhod (1367)
PHP: 8.2.31
Disabled: NONE
Upload Files
File: /home/vitanhod/www/wp-content/plugins/enhanced-text-widget/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);
}