UserFrosting API

ArrayStore

ArrayStore Class.

Class used to setup a cache instance in a defined namespace Uses the array driver by default. This driver is a dummy one that doesn't save anything. This class main purpose is to be a base class to be extended by other store

Tags
author

Louis Charette

Table of Contents

$config Repository
$app Container
$storeName string
__construct() Create the empty Illuminate Container and required config. mixed
instance() Return the store instance from the Laravel CacheManager. Store

Properties

Methods

__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