# AmazonS3Resolver

The AmazonS3Resolver requires the [aws-sdk-php](https://github.com/amazonwebservices/aws-sdk-for-php).

You can add the SDK by adding those lines to your `deps` file.

``` ini
[aws-sdk]
    git=git://github.com/amazonwebservices/aws-sdk-for-php.git
```

Afterwards, you only need to configure some information regarding your AWS account and the bucket.

``` yaml
parameters:
    amazon_s3.key: 'your-aws-key'
    amazon_s3.secret: 'your-aws-secret'
    amazon_s3.bucket: 'your-bucket.ex# CacheManager

## Cache removal

CacheManager allows to remove cache in various ways.

* Single path and filter.

```php
<?php

$cacheManager->remove($path, $filter);
```

* Single path and all filters

```php
<?php

$cacheManager->remove($path);
```

* Some paths and some filters.

```php
<?php

$cacheManager->remove(
    array($pathOne, $pathTwo),
    array('thumbnail_233x233', 'thumbnail_100x100')
);
```

* The whole cache.

```php
<?php

$cacheManager->remove();
```

[Back to the index](index.md)