caching\TagDependency invalidate()

invalidate() public static method Invalidates all of the cached data items that are associated with any of the specified $tags. public static void invalidate ( $cache, $tags )$cache yii\caching\Cache The cache component that caches the data items $tags string|array

caching\TagDependency getTimestamps()

getTimestamps() protected method Returns the timestamps for the specified tags. protected array getTimestamps ( $cache, $tags )$cache yii\caching\Cache $tags string[] return array The timestamps indexed by the specified tags.

caching\TagDependency touchKeys()

touchKeys() protected static method Generates the timestamp for the specified cache keys. protected static array touchKeys ( $cache, $keys )$cache yii\caching\Cache $keys string[] return array The timestamp indexed by cache keys

caching\TagDependency generateDependencyData()

generateDependencyData() protected method Generates the data needed to determine if dependency has been changed. This method does nothing in this class. 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.

caching\TagDependency $tags

$tags public property A list of tag names for this dependency. For a single tag, you may specify it as a string. public string|array $tags = []

caching\TagDependency getHasChanged()

getHasChanged() public method Performs the actual dependency checking. public boolean getHasChanged ( $cache )$cache yii\caching\Cache The cache component that is currently evaluating this dependency return boolean Whether the dependency is changed or not.

caching\MemCacheServer $weight

$weight public property Probability of using this server among all servers. public integer $weight = 1

caching\MemCacheServer $port

$port public property Memcache server port public integer $port = 11211

caching\MemCacheServer $timeout

$timeout public property Timeout in milliseconds which will be used for connecting to the server. This is used by memcache only. For old versions of memcache that only support specifying timeout in seconds this will be rounded up to full seconds. public integer $timeout = 1000

caching\MemCacheServer $host

$host public property Memcache server hostname or IP address public string $host = null