Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6867437
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T03:18:35+00:00 2026-05-27T03:18:35+00:00

I stumbled upon a weird behavior of Memcached server (version 1.4.5): I have a

  • 0

I stumbled upon a weird behavior of Memcached server (version 1.4.5):
I have a single server and I’m trying to delete a stored value and it doesn’t work as the item remains there (and I don’t receive any error).

I wrote a quick PHP code that shows the problem:

$memcache_object = memcache_connect(MEMCACHED_SERVER_ADDRESS, MEMCACHED_SERVER_PORT);
$key = '64b788714dx7cds5350101e37ec0ddd40253123d';

$myObject = memcache_get($memcache_object, $key);
echo count($myObject); // Prints 1000

memcache_delete($memcache_object, $key);

$myObjectSecondTry = memcache_get($memcache_object, $key);
if (empty($myObjectSecondTry))
    echo 'Empty'; // It does print it's empty

memcache_close($memcache_object);

Now if I run the code once it says “1000” and also it says that the object was empty on the second memcache_get() try.
But if I click refresh and run it again then the $key still exists on the memcached server and I get the same output.

I also tried to reconnect between each memcache call (i.e. get->delete->get) but it didn’t help.

The only thing that clears the memory is reseting the Memcached service.

Please advise.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T03:18:35+00:00Added an answer on May 27, 2026 at 3:18 am

    As far as I remember, it was an issue with the timeout so can you please try to use:

    memcache_delete($memcache_object, $key, 0);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i recently stumbled upon a seemingly weird behavior that Google completely failed to explain.
I stumbled upon this weird behavior in R: > a = 5 > names(a)
I stumbled upon a problem of how to make work together acts_as_taggable (on steroids)
I have stumbled upon the following F77 yacc grammar: http://yaxx.cvs.sourceforge.net/viewvc/yaxx/yaxx/fortran/fortran.y?revision=1.3&view=markup . How can I
I have recently stumbled upon a problem with selecting relationship details from a 1
I stumbled upon a curious problem with MFC. I have a Dialog where I
I have stumbled upon a problem when calling a nested Async which happens to
I stumbled upon the weirdest behavior in IE6/FF3 when setting custom height (even if
I've stumbled upon the following two weird looking properties: Process.GetCurrentProcess().MainModule; Assembly.GetExecutingAssembly().Location; These properties are
I stumbled upon this site http://nathanborror.com/ and really loved the way they have done

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.