src/Koldy/Cache.php
public static function getOrSet(string $key, \Closure $functionOnSet, int $seconds = null)
    {
        return static::getAdapter()->getOrSet($key, $functionOnSet, $seconds);
    }
public static function getOrSet(string $key, \Closure $functionOnSet, int $seconds = null)
    {
        return static::getAdapter()->getOrSet($key, $functionOnSet, $seconds);
    }
public static function getOrSet ( string $ key , \ Closure $ functionOnSet , int $ seconds = null ) { return static :: getAdapter ( ) -> getOrSet ( $ key , $ functionOnSet , $ seconds ) ; }
Get or set the key's value

@param string $key
@param \Closure $functionOnSet
@param int $seconds

@return mixed
@throws Exception
@link http://koldy.net/docs/cache#get-or-set
Get or set the key s value