caching\MemCache $username

$username public property Memcached sasl username. This property is used only when $useMemcached is true. See also http://php.net/manual/en/memcached.setsaslauthdata.php. public string $username = null

caching\MemCache $persistentId

$persistentId public property An ID that identifies a Memcached instance. This property is used only when $useMemcached is true. By default the Memcached instances are destroyed at the end of the request. To create an instance that persists between requests, you may specify a unique ID for the instance. All instances created with the same ID will share the same connection. See also http://ca2.php.net/manual/en/memcached.construct.php. public string $persistentId = null

caching\MemCache $memcache

$memcache public read-only property The memcache (or memcached) object used by this cache component. public \Memcache|\Memcached getMemcache ( )

caching\FileDependency generateDependencyData()

generateDependencyData() protected method Generates the data needed to determine if dependency has been changed. This method returns the file's last modification time. protected mixed generateDependencyData ( $cache )$cache yii\caching\Cache The cache component that is currently evaluating this dependency return mixed The data needed to determine if dependency has been changed. throws yii\base\InvalidConfigException if $fileName is not set

caching\MemCache $password

$password public property Memcached sasl password. This property is used only when $useMemcached is true. See also http://php.net/manual/en/memcached.setsaslauthdata.php. public string $password = null

caching\MemCache $options

$options public property Options for Memcached. This property is used only when $useMemcached is true. See also http://ca2.php.net/manual/en/memcached.setoptions.php. public array $options = null

caching\FileCache init()

init() public method Initializes this component by ensuring the existence of the cache path. public void init ( )

caching\FileCache setValue()

setValue() protected method Stores a value identified by a key in cache. This is the implementation of the method declared in the parent class. protected boolean setValue ( $key, $value, $duration )$key string The key identifying the value to be cached $value string The value to be cached. Other types (If you have disabled $serializer) unable to get is correct in getValue(). $duration integer The number of seconds in which the cached value will expire. 0 means never expire. return b

caching\FileCache getValue()

getValue() protected method Retrieves a value from cache with a specified key. This is the implementation of the method declared in the parent class. protected string|false getValue ( $key )$key string A unique key identifying the cached value return string|false The value stored in cache, false if the value is not in the cache or expired.

caching\FileDependency $fileName

$fileName public property The file path or path alias whose last modification time is used to check if the dependency has been changed. public string $fileName = null