PHP Class Xpressengine\Support\LaravelCache

Author: XE Developers ([email protected])
Inheritance: implements Xpressengine\Support\CacheInterface
Datei anzeigen Open project: xpressengine/xpressengine

Protected Properties

Property Type Description
$cache Illuminate\Contracts\Cache\Repository laravel cache instance
$minutes integer expire time

Public Methods

Method Description
__construct ( Illuminate\Contracts\Cache\Repository $cache, integer $minutes = 60 ) constructor
forget ( string $key ) : void remove
get ( string $key ) : mixed getter
getCacheManager ( ) : Illuminate\Contracts\Cache\Repository cache manager instance
has ( string $key ) : boolean has
put ( string $key, mixed $value, integer $minutes = null ) : void setter

Method Details

__construct() public method

constructor
public __construct ( Illuminate\Contracts\Cache\Repository $cache, integer $minutes = 60 )
$cache Illuminate\Contracts\Cache\Repository laravel cache instance
$minutes integer expire time

forget() public method

remove
public forget ( string $key ) : void
$key string key name
return void

get() public method

getter
public get ( string $key ) : mixed
$key string key name
return mixed

getCacheManager() public method

cache manager instance
public getCacheManager ( ) : Illuminate\Contracts\Cache\Repository
return Illuminate\Contracts\Cache\Repository

has() public method

has
public has ( string $key ) : boolean
$key string key name
return boolean

put() public method

setter
public put ( string $key, mixed $value, integer $minutes = null ) : void
$key string key name
$value mixed the value
$minutes integer expire time
return void

Property Details

$cache protected_oe property

laravel cache instance
protected Repository,Illuminate\Contracts\Cache $cache
return Illuminate\Contracts\Cache\Repository

$minutes protected_oe property

expire time
protected int $minutes
return integer