class Illuminate / Cache / ApcStore
You're browsing the documentation for an upcoming version of Laravel. The documentation and features of this release are subject to change.

ApcStore

Extends

Uses

Properties

protected

$apc ApcWrapper

The APC wrapper instance.

Default: null
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

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.