Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Separate cache relevant methods #11

Closed
wants to merge 1 commit into from
Closed

Separate cache relevant methods #11

wants to merge 1 commit into from

Conversation

micheh
Copy link

@micheh micheh commented Aug 5, 2015

This pull requests separates the cache relevant methods into one class called CacheHelper. All classes are now under the Slim\Middleware namespace.

Overview of the classes:

The CacheHelper and Cache objects are independent, if you only want helper methods or only want to add default cache headers, you can do so.

* @param int $maxAge The maximum age of client-side cache
* @param string $type The cache type: "public" or "private"
* @param int $maxAge The maximum age of client-side cache
* @param CacheHelper $cache The cache object to use

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

$cache can also be null:

@param CacheHelper|null $cache The cache object to use.

@micheh micheh closed this Aug 9, 2015
@micheh micheh deleted the feature/separate branch August 9, 2015 17:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Abort execution early if client side cache is still valid Unbind the Service Provider from the main code
2 participants