init ( $name, $location, $expires, $gzip )

Allows for chaining from the constructor. Requires PHP 5.3 or newer.

Access

public static

Parameters

Parameter

Type

Required

Description

$name

string

Required

A name to uniquely identify the cache object.

$location

string

Optional

The location to store the cache object in. This may vary by cache method. The default value is NULL.

$expires

integer

Optional

The number of seconds until a cache object is considered stale. The default value is 0.

$gzip

boolean

Optional

Whether data should be gzipped before being stored. The default value is true.

Returns

Type

Description

object

Reference to the cache object.

Source

Copyright © 2010–2013 Amazon Web Services, LLC


Feedback