October\Rain\Assetic\Cache\ConfigCache

A config cache stores values using var_export() and include.

Public methods

public void __construct(string $dir)

Construct.

Parameters
  • string $dir - The cache directory

public mixed get(string $resource)

Loads and returns the value for the supplied cache key.

Parameters
  • string $resource - A cache key

public integer getTimestamp(string $resource)

Returns a timestamp for when the cache was created.

Parameters
  • string $resource - A cache key

public Boolean has(string $resource)

Checks of the cache has a file.

Parameters
  • string $resource - A cache key

public void set(string $resource, mixed $value)

Writes a value to a file.

Parameters
  • string $resource - A cache key
  • mixed $value - A value to cache