src/psr4/Cache.php
public static function add( $key, $value, $expires )
	{
		$cache = self::instance();
		if ( $cache && $value != null) {
			$cache->set( $key, $value, $expires * 60 );
		}
	}
public static function add( $key, $value, $expires )
	{
		$cache = self::instance();
		if ( $cache && $value != null) {
			$cache->set( $key, $value, $expires * 60 );
		}
	}
public static function add ( $ key , $ value , $ expires ) { $ cache = self :: instance ( ) ; if ( $ cache && $ value != null ) { $ cache -> set ( $ key , $ value , $ expires * 60 ) ; } }
Adds a value to cache.
@since 1.0
@param string $key     Main plugin object as reference.
@param mixed  $value   Value to cache.
@param int  	 $expires Expiration time in minutes.
Adds a value to cache .