UserFrosting API

RedisStore extends ArrayStore

RedisStore Class.

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

Tags
author

Louis Charette

Table of Contents

$config Repository
$app Container
$storeName string
__construct() Extend the `ArrayStore` contructor to accept the redis server and port configuraton. 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 redis server and port configuraton.

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

(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