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

  • Home
  • SEARCH
  • 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 8198089
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T05:52:40+00:00 2026-06-07T05:52:40+00:00

I am using memcache to store larger session data that is choking the MYSQL/PHP

  • 0

I am using memcache to store larger session data that is choking the MYSQL/PHP limitations.
One thing however, is that these may not be requested again, and hence the ‘lazy’ memcache purging may not work.

Im trying to determine if there is a function that will purge all expired caches without having to walk through all of them.

OR … if memcache will only consume so much memory, and then purge the expired as needed to make room ..

Just looking for the most optimal way to handle these caches.

Thanks

  • 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-06-07T05:52:41+00:00Added an answer on June 7, 2026 at 5:52 am

    One thing however, is that these may not be requested again, and hence
    the ‘lazy’ memcache purging may not work.
    Im trying to determine if there is a function that will purge all
    expired caches without having to walk through all of them.

    I’m not really sure what you mean by this. There is no need to purge stuff that is expired. If it is expired, it doesn’t really count anymore. You won’t get these results because they aren’t valid anymore (expired).

    OR … if memcache will only consume so much memory, and then purge
    the expired as needed to make room ..

    Well, if you have expired items, they will be overwritten, so I don’t see what the issue is.

    Lets say you have room for 2 key/value pairs. If you have one that is expired, and one that is used but not expired, and you need to save a third, you can. You don’t need to actually purge anything, because it will remove the expired one.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

At the moment I'm using Memcache to store my php pdo mysql queries and
I want to start using memcache with PHP (on Ubuntu 9.10). There are lots
can I store objects in the servers memory to cache data using django, or
Im using memcache to store a json, and it's working. But the problem is
I'm a php developer. In .NET we are able to store data in server
I'm using Devise in a Rails application, and I can set session data through
I store instances of Domain objects in GAE's memcache using the javax.cache API. I'd
In my current project, I am using Memcache to store key-value pairs, but since
I am currently using a memcached-based session store ( https://github.com/mperham/dalli ). From time to
I am researching possibilities of using memcached as a session storage for a system

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.