Documentation

ApcCache
in package
implements CacheInterface

Uses APC to cache files

Tags
author

André Roaldseth andre@roaldseth.net

Interfaces, Classes and Traits

CacheInterface
Interface for a cache backend.

Table of Contents

$ttl  : mixed
get()  : string|null
Returns the value for a key.
has()  : bool
Checks if the cache has a value for a key.
remove()  : mixed
Removes a value from the cache.
set()  : mixed
Sets a value in the cache.

Properties

Methods

get()

Returns the value for a key.

public get(mixed $key) : string|null
Parameters
$key : mixed

A unique key

Tags
see
CacheInterface::get()
Return values
string|null

The value in the cache

has()

Checks if the cache has a value for a key.

public has(mixed $key) : bool
Parameters
$key : mixed

A unique key

Tags
see
CacheInterface::has()
Return values
bool

Whether the cache has a value for this key

remove()

Removes a value from the cache.

public remove(mixed $key) : mixed
Parameters
$key : mixed

A unique key

Tags
see
CacheInterface::remove()
Return values
mixed

set()

Sets a value in the cache.

public set(mixed $key, mixed $value) : mixed
Parameters
$key : mixed

A unique key

$value : mixed

The value to cache

Tags
see
CacheInterface::set()
Return values
mixed

Search results