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
 [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: Sun Apr 28 03:01:28 2024 UTC