php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #57176 Exclusive flag to apc_store()
Submitted: 2006-08-10 13:23 UTC Modified: 2007-02-24 06:36 UTC
From: david at acz dot org Assigned:
Status: Closed Package: APC (PECL)
PHP Version: Irrelevant OS: Any
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
30 - 19 = ?
Subscribe to this entry?

 
 [2006-08-10 13:23 UTC] david at acz dot org
Description:
------------
It would be useful if apc_store() had an exclusive flag to only set the value if the key does not already exist.  This would allow caching without race conditions.

If I submit a patch for this, will you include it in the next (eagerly awaited) release?


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-08-17 08:57 UTC] mauroi at digbang dot com
I think that a function called apc_add (similar to what memcache does) would be more elegant.
But this would definetively be a nice addition.

Thanks.
 [2007-02-24 06:36 UTC] rasmus@php.net
This is in CVS now and will be in 3.0.13
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat May 11 21:01:31 2024 UTC