master

laravel/framework

Last updated at: 29/12/2023 09:21

Factory.php

TLDR

This file defines the Factory interface which declares a method for getting a cache store instance by name.

Methods

store

This method retrieves a cache store instance by name.

Classes

This file does not contain any classes.

<?php

namespace Illuminate\Contracts\Cache;

interface Factory
{
    /**
     * Get a cache store instance by name.
     *
     * @param  string|null  $name
     * @return \Illuminate\Contracts\Cache\Repository
     */
    public function store($name = null);
}