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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T01:07:07+00:00 2026-06-06T01:07:07+00:00

The setup is suppose I have 2 memcached servers, and 2 web servers to

  • 0

The setup is suppose I have 2 memcached servers, and 2 web servers to connect to these two memcached servers. I am using spymemcached client.

Suppose:

1) web1 insert a key “abc” to memcached. Based on some mechanism it stored in memcached1.

2) When web2 tries to get key “abc” how does it know that it will go to memcached1 to get the key?

Do I need to do any special setting in spymemcached client side to make sure that the memcached server that will store a key is always determined?

  • 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-06T01:07:10+00:00Added an answer on June 6, 2026 at 1:07 am

    You do not need any special logic to do this. Memcached is a distributed cache and works by hashing keys to different servers. As long as you list all of the servers in your memcached cluster you should have no problem.

    I also want to note that the one parameter you can change is the hashing algorithm that is used by the clients. This can be done in whatever ConnectionFactory class you use to build your connection.

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

Sidebar

Related Questions

Suppose I have these two objects: public class Object1 { string prop1; string prop2;
Suppose I have several small test cases. Easy enough to setup and easy enough
Setup : I have a Struts web application where I use displaytag elements to
Suppose I have this setup: var whatever = new Array(); whatever[a] = new Array();
Suppose I have a unittest like this class TestABC(unittest.TestCase): def setUp(self): .... def test001_abc(self):
Suppose I have markup as setup http://jsfiddle.net/ADxne/ Currently drop downs look like To solve
Suppose you have a client/server application, say a webserver component and a qt gui.
Suppose I have 2 servers. The first is a service that provides some computations,
Suppose I have my models set up already. class books(models.Model): title = models.CharField... ISBN
Suppose I have a database like this: This is set up to give role-wise

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.