lithium\storage\Cache::clean()

public static method

Perform garbage collection on specified cache configuration. All invalidated cache keys - without honoring a configured scope - from the specified configuration are removed.

Parameters

  • string $name

    The cache configuration to be cleaned.

Returns

boolean

true on successful cleaning, false if failed partially or entirely.

Source

	public static function clean($name) {
		try {
			return static::adapter($name)->clean();
		} catch (ConfigException $e) {
			return false;
		}
	}