class
Illuminate
/
Cache
/
ApcStore
You are viewing an older version of the documentation. For the latest, please visit master documentation.
ApcStore
Extends
Uses
Properties
protected
$prefix string
A string that should be prepended to keys.
Default: null
Methods
public
__construct ( ApcWrapper $apc , $prefix ) : void
Create a new APC store.
Parameters
- $apc ApcWrapper
- $prefix string
public
get ( $key ) : mixed
Retrieve an item from the cache by key.
Parameters
- $key string|array
public
put ( $key , $value , $seconds ) : bool
Store an item in the cache for a given number of seconds.
Parameters
- $key string
- $value mixed
- $seconds int
public
increment ( $key , $value ) : int|bool
Increment the value of an item in the cache.
Parameters
- $key string
- $value mixed
public
decrement ( $key , $value ) : int|bool
Decrement the value of an item in the cache.
Parameters
- $key string
- $value mixed
public
forever ( $key , $value ) : bool
Store an item in the cache indefinitely.
Parameters
- $key string
- $value mixed
public
forget ( $key ) : bool
Remove an item from the cache.
Parameters
- $key string
public
flush ( ) : bool
Remove all items from the cache.
public
getPrefix ( ) : string
Get the cache key prefix.