Skip to content

Conversation

@winglian
Copy link
Contributor

The current Cache Repository implementation of add() uses if (!get then put) which is not really thread safe. It is probably safer to use Memcached's add method directly.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Missing new line.

@MaartenStaa
Copy link

This is much better than what Laravel does by default 👍

@GrahamCampbell
Copy link
Collaborator

I wonder if this would be ok to go into 5.0. Don't retarget this, but just wait for Taylor.

@taylorotwell
Copy link
Member

Did a little differently on 5.0 branch.

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.

4 participants