MemcachedStore extends ArrayStore
MemcachedStore Class.
Setup a cache instance in a defined namespace using the memcached
driver
Tags
Table of Contents
$config | Repository | |
---|---|---|
$app | Container | |
$storeName | string | |
__construct() | Extend the `ArrayStore` contructor to accept the memcached 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
$config
protected
Repository
$config
$app
protected
Container
$app
$storeName
protected
string
$storeName
Methods
__construct()
Extend the `ArrayStore` contructor to accept the memcached server and port configuraton.
public
__construct(
[ $memcachedConfig :
array
= [] ]
[, $storeName :
string
= 'default' ]
[, $app :
Container|null
= null ]
)
: mixed
Parameters
- $memcachedConfig : array = []
(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
mixedinstance()
Return the store instance from the Laravel CacheManager.
public
instance(
)
: Store
Return values
Store —Laravel Cache instance