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 3332016
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T23:38:36+00:00 2026-05-17T23:38:36+00:00

I have chosen to store my sessions in memcache, which is working well…. recently

  • 0

I have chosen to store my sessions in memcache, which is working well…. recently we have had too many active users… so we had to limit the number using our app. To achieve this I use

$memcache->getStats(); and based on the number of [‘curr_items’] I let the user into the app or not.

Problem is I now realised I would like to use memcache to store some frequently run queries…. this would obviously break my method of counting the active sessions… so can I run multiple memcache instances… one for sessions, one for everything else…. is there a disadvantage to doing so?

  • 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-17T23:38:37+00:00Added an answer on May 17, 2026 at 11:38 pm

    You can run different Memcache instances on different ports and use them for any purpose you want. There’s very little performance overhead in juggling multiple Memcache instances. Just instantiate another Memcache object with different connection parameters.

    It seems, however, that you’re using a pretty odd method of counting and restricting your users. If you use Memcache more heavily and in the right places, you’ll be able to support a lot more active users. That’s the proper way to use Memcache, after all.

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

Sidebar

Related Questions

I am working with a hexagonal grid. I have chosen to use this coordinate
I have a application which handles picture chosen from gallery. But there is a
I have a MarshalByRefObject which I needed to serialize and store (in a database),
I have chosen diploma work in university. It's a mini social network. But now
Say a user registers for your site, you hash the password they have chosen
I am just beginning to get into desktop application development, and have chosen C#
Trying to wrap my head around JTA and have arbitrarily chosen Bitronix as the
I have an iOS method written to upload a chosen image to a web
I have developed an application that reads files from the folder chosen by the
I am using chosen.js ( http://harvesthq.github.com/chosen/ ) and I have a select box that

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.