UserFrosting API

FileStore extends ArrayStore

FileStore Class.

Setup a cache instance in a defined namespace using the file driver

Tags
author

Louis Charette

Table of Contents

$config Repository
$app Container
$storeName string
__construct() Extend the `ArrayStore` contructor to accept the file driver $path config and setup the necessary config. mixed
__construct() Create the empty Illuminate Container and required config. mixed
instance() Return the store instance from the Laravel CacheManager. Store

Properties

Methods

__construct()

Extend the `ArrayStore` contructor to accept the file driver $path config and setup the necessary config.

public __construct( [ $path : string = './' ] [, $storeName : string = 'default' ] [, $app : Container|null = null ] ) : mixed
Parameters
$path : string = './'

(default: "./")

$storeName : string = 'default'

(default: "default")

$app : Container|null = null

(default: null)

Return values
mixed

__construct()

Create the empty Illuminate Container and required config.

public __construct( [ $storeName : string = 'default' ] [, $app : Container|null = null ] ) : mixed
Parameters
$storeName : string = 'default'

(default: "default")

$app : Container|null = null

(default: null)

Return values
mixed

instance()

Return the store instance from the Laravel CacheManager.

public instance( ) : Store
Return values
Store

Laravel Cache instance

Search results