Phosphorum\Models\CacheableModel::findFirst PHP Method

findFirst() public static method

Caches models data in memory
public static findFirst ( mixed $parameters = null )
$parameters mixed
    public static function findFirst($parameters = null)
    {
        // Create an unique key based on the parameters
        if ($key = self::createKey($parameters)) {
            $parameters['cache'] = ['key' => $key];
        }
        return parent::findFirst($parameters);
    }