Methods summary
public
|
#
__construct( string $key )
Create a new WinCache cache driver instance.
Create a new WinCache cache driver instance.
Parameters
|
public
boolean
|
#
has( string $key )
Determine if an item exists in the cache.
Determine if an item exists in the cache.
Parameters
Returns
boolean
|
protected
mixed
|
#
retrieve( string $key )
Retrieve an item from the cache driver.
Retrieve an item from the cache driver.
Parameters
Returns
mixed
|
public
|
#
put( string $key, mixed $value, integer $minutes )
Write an item to the cache for a given number of minutes.
Write an item to the cache for a given number of minutes.
Cache::put('name', 'Taylor', 15);
Parameters
- $key
string $key
- $value
mixed $value
- $minutes
integer $minutes
|
public
|
#
forever( string $key, mixed $value )
Write an item to the cache that lasts forever.
Write an item to the cache that lasts forever.
Parameters
- $key
string $key
- $value
mixed $value
|
public
|
#
forget( string $key )
Delete an item from the cache.
Delete an item from the cache.
Parameters
|