|
Previous Page |
Solar_Cache_Adapter_File |
Next Page |
Properties
Public
None.
Protected
$_Solar_Cache_Adapter
(array) User-provided configuration.
Inherited from Solar_Cache_Adapter.
Config keys are ...
life- (int) The lifetime of each cache entry in seconds.
$_Solar_Cache_Adapter_File
(array) User-provided configuration.
Config keys are ...
path- (string) The directory where cache files are located; should be readable and writable by the script process, usually the web server process. Default is '/Solar_Cache_File' in the system temporary directory. Will be created if it does not already exist. Supports streams, so you may specify (e.g.) 'http://cache-server/' as the path.
mode- (int) If the cache path does not exist, when it is created, use
this octal permission mode. Default is
0750(user read/write/exec, group read, others excluded). context- (array|resource) A stream context resource, or an array to pass to stream_create_context(). When empty, no context is used. Default null.
$_active
(bool) Whether or not the cache is active.
Inherited from Solar_Cache_Adapter.
$_config
(array) Collection point for configuration values.
Inherited from Solar_Base.
Note that you do not define config defaults in $_config directly.
<?php
// DO NOT DO THIS
protected $_config = array(
'foo' => 'bar',
'baz' => 'dib',
);
?>
Instead, define config defaults in a protected property named for the class, withan underscore prefix.
For exmple, a "Vendor_Class_Name" class would define the default config array in "$_Vendor_Class_Name". This convention lets child classes inherit parent config keys and values.
<?php
// DO THIS INSTEAD
protected $_Vendor_Class_Name = array(
'foo' => 'bar',
'baz' => 'dib',
);
?>
$_context
(resource) A stream context resource to define how the input/output for the cache is handled.
$_life
(int) The lifetime of each cache entry in seconds.
Inherited from Solar_Cache_Adapter.
$_path
(string) Path to the cache directory.
Private
None.