The cache function may be used to get values from the cache. If the given key does not exist in the cache, an optional default value will be returned:
<?php $value = cache('key');

$value = cache('key', 'default');
<?php         Manager::runAll();



        $this->assertTrue(cache()->has('permissions-update-successful'));

        $this->assertFalse(cache()->has('trees-update-successful'));

        $this->assertTrue(cache()->has('taxonomies-update-successful'));

    }
<?php         Manager::runAll();



        $this->assertTrue(cache()->has('permissions-update-successful'));

        $this->assertFalse(cache()->has('trees-update-successful'));

        $this->assertTrue(cache()->has('taxonomies-update-successful'));

    }
<?php         $this->assertTrue(cache()->has('permissions-update-successful'));

        $this->assertFalse(cache()->has('trees-update-successful'));

        $this->assertTrue(cache()->has('taxonomies-update-successful'));

    }
<?php         Manager::runAll();



        $this->assertFalse(cache()->has('permissions-update-successful'));

        $this->assertFalse(cache()->has('trees-update-successful'));

        $this->assertFalse(cache()->has('taxonomies-update-successful'));

        $this->assertFalse(cache()->has('seo-pro-update-successful'));
<?php         Manager::runAll();



        $this->assertFalse(cache()->has('permissions-update-successful'));

        $this->assertFalse(cache()->has('trees-update-successful'));

        $this->assertFalse(cache()->has('taxonomies-update-successful'));

        $this->assertFalse(cache()->has('seo-pro-update-successful'));

    }
<?php         $this->assertFalse(cache()->has('permissions-update-successful'));

        $this->assertFalse(cache()->has('trees-update-successful'));

        $this->assertFalse(cache()->has('taxonomies-update-successful'));

        $this->assertFalse(cache()->has('seo-pro-update-successful'));

    }
<?php         $this->assertFalse(cache()->has('permissions-update-successful'));

        $this->assertFalse(cache()->has('trees-update-successful'));

        $this->assertFalse(cache()->has('taxonomies-update-successful'));

        $this->assertFalse(cache()->has('seo-pro-update-successful'));

    }
<?php         Manager::runAll();



        $this->assertFalse(cache()->has('permissions-update-successful'));

        $this->assertFalse(cache()->has('trees-update-successful'));

        $this->assertFalse(cache()->has('taxonomies-update-successful'));

        $this->assertFalse(cache()->has('seo-pro-update-successful'));
<?php         Manager::runAll();



        $this->assertFalse(cache()->has('permissions-update-successful'));

        $this->assertFalse(cache()->has('trees-update-successful'));

        $this->assertFalse(cache()->has('taxonomies-update-successful'));

        $this->assertFalse(cache()->has('seo-pro-update-successful'));

    }
<?php         $this->assertFalse(cache()->has('permissions-update-successful'));

        $this->assertFalse(cache()->has('trees-update-successful'));

        $this->assertFalse(cache()->has('taxonomies-update-successful'));

        $this->assertFalse(cache()->has('seo-pro-update-successful'));

    }
<?php         $this->assertFalse(cache()->has('permissions-update-successful'));

        $this->assertFalse(cache()->has('trees-update-successful'));

        $this->assertFalse(cache()->has('taxonomies-update-successful'));

        $this->assertFalse(cache()->has('seo-pro-update-successful'));

    }
<?php         Manager::runAll();



        $this->assertTrue(cache()->has('permissions-update-successful'));

        $this->assertFalse(cache()->has('trees-update-successful'));

        $this->assertTrue(cache()->has('taxonomies-update-successful'));

        $this->assertFalse(cache()->has('seo-pro-update-successful'));
<?php         Manager::runAll();



        $this->assertTrue(cache()->has('permissions-update-successful'));

        $this->assertFalse(cache()->has('trees-update-successful'));

        $this->assertTrue(cache()->has('taxonomies-update-successful'));

        $this->assertFalse(cache()->has('seo-pro-update-successful'));

    }
<?php         $this->assertTrue(cache()->has('permissions-update-successful'));

        $this->assertFalse(cache()->has('trees-update-successful'));

        $this->assertTrue(cache()->has('taxonomies-update-successful'));

        $this->assertFalse(cache()->has('seo-pro-update-successful'));

    }
<?php         $this->assertTrue(cache()->has('permissions-update-successful'));

        $this->assertFalse(cache()->has('trees-update-successful'));

        $this->assertTrue(cache()->has('taxonomies-update-successful'));

        $this->assertFalse(cache()->has('seo-pro-update-successful'));

    }