lithium\storage\cache\adapter\Apc::__construct()

public method

Constructor.

Parameters

  • array $config

    Configuration for this cache adapter. These settings are queryable through Cache::config('name'). The available options are as follows:

    • 'scope' string: Scope which will prefix keys; per default not set.
    • 'expiry' mixed: The default expiration time for cache values, if no value is otherwise set. Can be either a strtotime() compatible tring or TTL in seconds. To indicate items should not expire use Cache::PERSIST. Defaults to +1 hour.

Returns

void

Source

	public function __construct(array $config = []) {
		$defaults = [
			'scope' => null,
			'expiry' => '+1 hour'
		];
		parent::__construct($config + $defaults);
	}