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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T04:42:10+00:00 2026-06-06T04:42:10+00:00

I am working on a caching strategy for our application, which uses both Redis

  • 0

I am working on a caching strategy for our application, which uses both Redis and Memcached.

We generate fairly long JSON strings of cached data, calculated from our SQL database. Since the cached data is disposable, I’d like to use Memcached so it’ll evict keys that we don’t need anymore.

The problem is that one collection (say, Users), can be accessed from different parameters. In Redis I’d use a Hash, so I could access keys (hget) in that hash for each representation of the collection and still be able to expire all the keys with one command (del). However, I can’t find a way to evict old keys to a given DB size like Memcached would do.

So my question is either:

  • How can I set Redis so it keeps a maximum DB size and evicts keys as needed?, or
  • How can I model Redis hashes in Memcached, so I can expire a group of keys easily?
  • 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-06T04:42:12+00:00Added an answer on June 6, 2026 at 4:42 am

    To configure Redis so it has a memcached-like cache behavior, you need to update the configuration file as follows:

    • set a value for maxmemory (in bytes)
    • set the maxmemory-policy to allkeys-lru

    You should get the behavior you want.

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

Sidebar

Related Questions

I'm working on application in which I need to generate and frequently access thousands
I'm working on an ASP.NET web application and I want to implement caching, so
I am working on an ASP.NET application and caching some reference data. The code
So I am working on a project which uses ASP.NET. I am trying to
Im working on a virtual globe web application which serves a lot of map
I am working on a webapplication that uses caching to make it available offline.
Working in Scala-IDE, I have a Java library, in which one of the methods
I'm working with an image caching system that generates different images based on a
I'm working on a PHP script on a remote server-- apparently the caching is
I have an ecommerce working in ASP.Net MVC. I'm using Caching to improve performance

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.