LaravelCacheDriversWinCache

Summary

No public properties found
No constants found
No private methods found
No private properties found
N/A
File
cachedriverswincache.php
Package
Default
Class hierarchy
LaravelCacheDriversWinCache

Tags

None found

Properties

$key

$key : string

The cache key from the cache configuration file.

Type

string

Tags

None found

Methods

has()

has(string  $key) : boolean

Determine if an item exists in the cache.

Parameters

string $key

Returns

boolean

Tags

None found

get()

get(string  $key, mixed  $default = null) : mixed

Get an item from the cache.

// Get an item from the cache driver $name = Cache::driver('name');

// Return a default value if the requested item isn't cached
$name = Cache::get('name', 'Taylor');

Parameters

string $key
mixed $default

Returns

mixed

Inherited from
LaravelCacheDriversDriver

Tags

None found

put()

put(string  $key, mixed  $value, integer  $minutes) : void

Write an item to the cache for a given number of minutes.

// Put an item in the cache for 15 minutes Cache::put('name', 'Taylor', 15);

Parameters

string $key
mixed $value
integer $minutes

Tags

None found

remember()

remember(string  $key, mixed  $default, integer  $minutes, string  $function = 'put') : mixed

Get an item from the cache, or cache and return the default value.

// Get an item from the cache, or cache a value for 15 minutes $name = Cache::remember('name', 'Taylor', 15);

// Use a closure for deferred execution
$count = Cache::remember('count', function() { return User::count(); }, 15);

Parameters

string $key
mixed $default
integer $minutes
string $function

Returns

mixed

Inherited from
LaravelCacheDriversDriver

Tags

None found

sear()

sear(string  $key, mixed  $default) : mixed

Get an item from the cache, or cache the default value forever.

Parameters

string $key
mixed $default

Returns

mixed

Inherited from
LaravelCacheDriversDriver

Tags

None found

forget()

forget(string  $key) : void

Delete an item from the cache.

Parameters

string $key

Tags

None found

__construct()

__construct(string  $key) : void

Create a new WinCache cache driver instance.

Parameters

string $key

Tags

None found

forever()

forever(string  $key, mixed  $value) : void

Write an item to the cache that lasts forever.

Parameters

string $key
mixed $value

Tags

None found

retrieve()

retrieve(string  $key) : mixed

Retrieve an item from the cache driver.

Parameters

string $key

Returns

mixed

Tags

None found

expiration()

expiration(integer  $minutes) : integer

Get the expiration time as a UNIX timestamp.

Parameters

integer $minutes

Returns

integer

Inherited from
LaravelCacheDriversDriver

Tags

None found