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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: david at acz dot org
New email:
PHP Version: OS:

 

 [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 07:01:32 2024 UTC